Add a reference to ilog2 in leading_zeros integer docs
Asked in #104248
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user