Skip to content

Mention ilog2 from leading_zeros docs #104248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
yoshuawuyts opened this issue Nov 10, 2022 · 1 comment · Fixed by #104263
Closed

Mention ilog2 from leading_zeros docs #104248

yoshuawuyts opened this issue Nov 10, 2022 · 1 comment · Fixed by #104263
Assignees
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools

Comments

@yoshuawuyts
Copy link
Member

yoshuawuyts commented Nov 10, 2022

I was chatting with @scottmcm today, who mentioned it'd be helpful to mention the newly stabilized ilog2 APIs from the leading_zeros docs. The benefit of using ilog2 is that even if the type widens, the result doesn't change.

It'd be nice if someone could contribute docs mentioning ilog2 from leading_zeros. This probably just needs to be a one-liner.

@yoshuawuyts yoshuawuyts added the A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools label Nov 10, 2022
@albertlarsan68
Copy link
Member

@rustbot claim

albertlarsan68 added a commit to albertlarsan68/rust that referenced this issue Nov 10, 2022
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this issue Nov 12, 2022
…g-zeroes-docs, r=scottmcm

Add a reference to ilog2 in leading_zeros integer docs

Fixes rust-lang#104248
@bors bors closed this as completed in cd4b3ac Nov 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants