Skip to content

Commit a27b1b6

Browse files
authored
Rollup merge of #72224 - lzutao:links, r=Dylan-DPC
doc: add links to rotate_(left|right)
2 parents 941dfb9 + 257e377 commit a27b1b6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/libcore/num/mod.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -1499,8 +1499,8 @@ any high-order bits of `rhs` that would cause the shift to exceed the bitwidth o
14991499
15001500
Note that this is *not* the same as a rotate-left; the RHS of a wrapping shift-left is restricted to
15011501
the range of the type, rather than the bits shifted out of the LHS being returned to the other end.
1502-
The primitive integer types all implement a `rotate_left` function, which may be what you want
1503-
instead.
1502+
The primitive integer types all implement a `[`rotate_left`](#method.rotate_left) function,
1503+
which may be what you want instead.
15041504
15051505
# Examples
15061506
@@ -1531,8 +1531,8 @@ removes any high-order bits of `rhs` that would cause the shift to exceed the bi
15311531
15321532
Note that this is *not* the same as a rotate-right; the RHS of a wrapping shift-right is restricted
15331533
to the range of the type, rather than the bits shifted out of the LHS being returned to the other
1534-
end. The primitive integer types all implement a `rotate_right` function, which may be what you want
1535-
instead.
1534+
end. The primitive integer types all implement a [`rotate_right`](#method.rotate_right) function,
1535+
which may be what you want instead.
15361536
15371537
# Examples
15381538
@@ -3610,8 +3610,8 @@ Note that this is *not* the same as a rotate-left; the
36103610
RHS of a wrapping shift-left is restricted to the range
36113611
of the type, rather than the bits shifted out of the LHS
36123612
being returned to the other end. The primitive integer
3613-
types all implement a `rotate_left` function, which may
3614-
be what you want instead.
3613+
types all implement a [`rotate_left`](#method.rotate_left) function,
3614+
which may be what you want instead.
36153615
36163616
# Examples
36173617
@@ -3644,8 +3644,8 @@ Note that this is *not* the same as a rotate-right; the
36443644
RHS of a wrapping shift-right is restricted to the range
36453645
of the type, rather than the bits shifted out of the LHS
36463646
being returned to the other end. The primitive integer
3647-
types all implement a `rotate_right` function, which may
3648-
be what you want instead.
3647+
types all implement a [`rotate_right`](#method.rotate_right) function,
3648+
which may be what you want instead.
36493649
36503650
# Examples
36513651

0 commit comments

Comments
 (0)