Add a reference to ilog2 in leading_zeros integer docs
Asked in #104248
This commit is contained in:
parent
2afca78a0b
commit
d85b61460a
3 changed files with 11 additions and 5 deletions
|
@ -107,6 +107,10 @@ macro_rules! int_impl {
|
|||
|
||||
/// Returns the number of leading zeros in the binary representation of `self`.
|
||||
///
|
||||
/// The
|
||||
#[doc = concat!("[`", stringify!($SelfTy), "::ilog2()`]")]
|
||||
/// function returns a consistent number, even if the type widens.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// Basic usage:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue