You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ghost opened this issue
Apr 29, 2022
· 1 comment
· Fixed by #96567
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-bugCategory: This is a bug.T-libsRelevant to the library team, which will review and decide on the PR/issue.
See for example for the types u32 and i32 and the function log2.
For u32::log2 we can read:
When the number is negative or zero it panics in debug mode and the return value is 0 in release mode.
For i32::log2:
When the number is zero it panics in debug mode and the return value is 0 in release mode.
The word negative only makes sense for i32 and not for u32 but it's exactly written the opposite. So, it's missing where it's important and it's written where it's not possible. The documentation was probably autogenerated, I think.
I think this PR is related
The text was updated successfully, but these errors were encountered:
inquisitivecrystal
added
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
C-bug
Category: This is a bug.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
labels
Apr 29, 2022
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-bugCategory: This is a bug.T-libsRelevant to the library team, which will review and decide on the PR/issue.
See for example for the types
u32
andi32
and the functionlog2
.For
u32::log2
we can read:For
i32::log2
:The word
negative
only makes sense fori32
and not foru32
but it's exactly written the opposite. So, it's missing where it's important and it's written where it's not possible. The documentation was probably autogenerated, I think.I think this PR is related
The text was updated successfully, but these errors were encountered: