-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Labels
T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
- Create a new crate.
- Put for instance
const HOUR_IN_SECONDS: u64 = 60 * 60;intosrc/main.rs. cargo doc --open.- Navigate to the constant.
- See
pub(crate) const HOUR_IN_SECONDS: u64 = 60 * 60; // 0x0_000_000_000_000_e10u64.
There is a long and very hard to read commented hexadecimal number at the end, 3600 in decimal. Why is it there and how is it useful to the documentation reader? Shouldn't it at least be in decimal?
Is this perhaps a bug?
I also can't find any documentation or sources on this behavior like in https://doc.rust-lang.org/rustdoc/.
Metadata
Metadata
Assignees
Labels
T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.