Add a reference to ilog2 in leading_zeros integer docs

Asked in #104248
This commit is contained in:
Albert Larsan
2022-11-10 22:26:10 +01:00
parent 2afca78a0b
commit d85b61460a
3 changed files with 11 additions and 5 deletions

View File

@@ -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: