@@ -994,7 +994,7 @@ macro_rules! uint_impl {
994994 /// RHS of a wrapping shift-left is restricted to the range
995995 /// of the type, rather than the bits shifted out of the LHS
996996 /// being returned to the other end. The primitive integer
997- /// types all implement a [`rotate_left`](#method. rotate_left) function,
997+ /// types all implement a [`rotate_left`](Self:: rotate_left) function,
998998 /// which may be what you want instead.
999999 ///
10001000 /// # Examples
@@ -1026,7 +1026,7 @@ macro_rules! uint_impl {
10261026 /// RHS of a wrapping shift-right is restricted to the range
10271027 /// of the type, rather than the bits shifted out of the LHS
10281028 /// being returned to the other end. The primitive integer
1029- /// types all implement a [`rotate_right`](#method. rotate_right) function,
1029+ /// types all implement a [`rotate_right`](Self:: rotate_right) function,
10301030 /// which may be what you want instead.
10311031 ///
10321032 /// # Examples
@@ -1642,8 +1642,8 @@ macro_rules! uint_impl {
16421642 ///
16431643 #[ doc = $to_xe_bytes_doc]
16441644 ///
1645- /// [`to_be_bytes`]: #method. to_be_bytes
1646- /// [`to_le_bytes`]: #method. to_le_bytes
1645+ /// [`to_be_bytes`]: Self:: to_be_bytes
1646+ /// [`to_le_bytes`]: Self:: to_le_bytes
16471647 ///
16481648 /// # Examples
16491649 ///
@@ -1675,7 +1675,7 @@ macro_rules! uint_impl {
16751675 ///
16761676 /// [`to_ne_bytes`] should be preferred over this whenever possible.
16771677 ///
1678- /// [`to_ne_bytes`]: #method. to_ne_bytes
1678+ /// [`to_ne_bytes`]: Self:: to_ne_bytes
16791679 ///
16801680 /// # Examples
16811681 ///
@@ -1767,8 +1767,8 @@ macro_rules! uint_impl {
17671767 /// likely wants to use [`from_be_bytes`] or [`from_le_bytes`], as
17681768 /// appropriate instead.
17691769 ///
1770- /// [`from_be_bytes`]: #method. from_be_bytes
1771- /// [`from_le_bytes`]: #method. from_le_bytes
1770+ /// [`from_be_bytes`]: Self:: from_be_bytes
1771+ /// [`from_le_bytes`]: Self:: from_le_bytes
17721772 ///
17731773 #[ doc = $from_xe_bytes_doc]
17741774 ///
@@ -1806,8 +1806,7 @@ macro_rules! uint_impl {
18061806 }
18071807
18081808 /// New code should prefer to use
1809- #[ doc = concat!( "[`" , stringify!( $SelfT) , "::MIN" , "`](#associatedconstant.MIN)." ) ]
1810- /// instead.
1809+ #[ doc = concat!( "[`" , stringify!( $SelfT) , "::MIN" , "`] instead." ) ]
18111810 ///
18121811 /// Returns the smallest value that can be represented by this integer type.
18131812 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -1818,8 +1817,7 @@ macro_rules! uint_impl {
18181817 pub const fn min_value( ) -> Self { Self :: MIN }
18191818
18201819 /// New code should prefer to use
1821- #[ doc = concat!( "[`" , stringify!( $SelfT) , "::MAX" , "`](#associatedconstant.MAX)." ) ]
1822- /// instead.
1820+ #[ doc = concat!( "[`" , stringify!( $SelfT) , "::MAX" , "`] instead." ) ]
18231821 ///
18241822 /// Returns the largest value that can be represented by this integer type.
18251823 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
0 commit comments