Skip to content

Commit

Permalink
Rollup merge of rust-lang#79871 - Pratyush:patch-1, r=joshtriplett
Browse files Browse the repository at this point in the history
Fix small typo in `wrapping_shl` documentation

Fixes a small typo in the documentation.
  • Loading branch information
Dylan-DPC authored Dec 10, 2020
2 parents f053d6b + 56d9784 commit e28134c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/num/int_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ any high-order bits of `rhs` that would cause the shift to exceed the bitwidth o
Note that this is *not* the same as a rotate-left; the RHS of a wrapping shift-left is restricted to
the range of the type, rather than the bits shifted out of the LHS being returned to the other end.
The primitive integer types all implement a `[`rotate_left`](#method.rotate_left) function,
The primitive integer types all implement a [`rotate_left`](#method.rotate_left) function,
which may be what you want instead.
# Examples
Expand Down

0 comments on commit e28134c

Please sign in to comment.