Skip to content

Commit 257e377

Browse files
committed
doc: add links to rotate_(left|right)
1 parent 85f0da6 commit 257e377

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
@@ -1448,8 +1448,8 @@ any high-order bits of `rhs` that would cause the shift to exceed the bitwidth o
14481448
14491449
Note that this is *not* the same as a rotate-left; the RHS of a wrapping shift-left is restricted to
14501450
the range of the type, rather than the bits shifted out of the LHS being returned to the other end.
1451-
The primitive integer types all implement a `rotate_left` function, which may be what you want
1452-
instead.
1451+
The primitive integer types all implement a `[`rotate_left`](#method.rotate_left) function,
1452+
which may be what you want instead.
14531453
14541454
# Examples
14551455
@@ -1480,8 +1480,8 @@ removes any high-order bits of `rhs` that would cause the shift to exceed the bi
14801480
14811481
Note that this is *not* the same as a rotate-right; the RHS of a wrapping shift-right is restricted
14821482
to the range of the type, rather than the bits shifted out of the LHS being returned to the other
1483-
end. The primitive integer types all implement a `rotate_right` function, which may be what you want
1484-
instead.
1483+
end. The primitive integer types all implement a [`rotate_right`](#method.rotate_right) function,
1484+
which may be what you want instead.
14851485
14861486
# Examples
14871487
@@ -3508,8 +3508,8 @@ Note that this is *not* the same as a rotate-left; the
35083508
RHS of a wrapping shift-left is restricted to the range
35093509
of the type, rather than the bits shifted out of the LHS
35103510
being returned to the other end. The primitive integer
3511-
types all implement a `rotate_left` function, which may
3512-
be what you want instead.
3511+
types all implement a [`rotate_left`](#method.rotate_left) function,
3512+
which may be what you want instead.
35133513
35143514
# Examples
35153515
@@ -3542,8 +3542,8 @@ Note that this is *not* the same as a rotate-right; the
35423542
RHS of a wrapping shift-right is restricted to the range
35433543
of the type, rather than the bits shifted out of the LHS
35443544
being returned to the other end. The primitive integer
3545-
types all implement a `rotate_right` function, which may
3546-
be what you want instead.
3545+
types all implement a [`rotate_right`](#method.rotate_right) function,
3546+
which may be what you want instead.
35473547
35483548
# Examples
35493549

0 commit comments

Comments
 (0)