Skip to content

Commit c94345e

Browse files
authored
Rollup merge of rust-lang#79871 - Pratyush:patch-1, r=joshtriplett
Fix small typo in `wrapping_shl` documentation Fixes a small typo in the documentation.
2 parents c0cc910 + 56d9784 commit c94345e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/num/int_macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ any high-order bits of `rhs` that would cause the shift to exceed the bitwidth o
12111211
12121212
Note that this is *not* the same as a rotate-left; the RHS of a wrapping shift-left is restricted to
12131213
the range of the type, rather than the bits shifted out of the LHS being returned to the other end.
1214-
The primitive integer types all implement a `[`rotate_left`](#method.rotate_left) function,
1214+
The primitive integer types all implement a [`rotate_left`](#method.rotate_left) function,
12151215
which may be what you want instead.
12161216
12171217
# Examples

0 commit comments

Comments
 (0)