File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -108,8 +108,7 @@ macro_rules! int_impl {
108
108
/// Returns the number of leading zeros in the binary representation of `self`.
109
109
///
110
110
/// Depending on what you're doing with the value, you might also be interested in the
111
- #[ doc = concat!( "[`" , stringify!( $SelfTy) , "::ilog2()`]" ) ]
112
- /// function which returns a consistent number, even if the type widens.
111
+ /// [`ilog2`] function which returns a consistent number, even if the type widens.
113
112
///
114
113
/// # Examples
115
114
///
@@ -120,6 +119,7 @@ macro_rules! int_impl {
120
119
///
121
120
/// assert_eq!(n.leading_zeros(), 0);
122
121
/// ```
122
+ #[ doc = concat!( "[`ilog2`]: " , stringify!( $SelfT) , "::ilog2" ) ]
123
123
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
124
124
#[ rustc_const_stable( feature = "const_int_methods" , since = "1.32.0" ) ]
125
125
#[ must_use = "this returns the result of the operation, \
Original file line number Diff line number Diff line change @@ -110,8 +110,7 @@ macro_rules! uint_impl {
110
110
/// Returns the number of leading zeros in the binary representation of `self`.
111
111
///
112
112
/// Depending on what you're doing with the value, you might also be interested in the
113
- #[ doc = concat!( "[`" , stringify!( $SelfTy) , "::ilog2()`]" ) ]
114
- /// function which returns a consistent number, even if the type widens.
113
+ /// [`ilog2`] function which returns a consistent number, even if the type widens.
115
114
///
116
115
/// # Examples
117
116
///
@@ -122,6 +121,7 @@ macro_rules! uint_impl {
122
121
///
123
122
/// assert_eq!(n.leading_zeros(), 2);
124
123
/// ```
124
+ #[ doc = concat!( "[`ilog2`]: " , stringify!( $SelfT) , "::ilog2" ) ]
125
125
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
126
126
#[ rustc_const_stable( feature = "const_math" , since = "1.32.0" ) ]
127
127
#[ must_use = "this returns the result of the operation, \
You can’t perform that action at this time.
0 commit comments