Skip to content

Commit

Permalink
Fix left/right shift typo in wrapping rotate docs
Browse files Browse the repository at this point in the history
This makes the note similar to the one found on rotate functions for
primitive types like i32/u32.
  • Loading branch information
t-rapp committed Oct 18, 2019
1 parent a16dca3 commit 769e75b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/num/wrapping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ assert_eq!(n.trailing_zeros(), 3);
/// wrapping the truncated bits to the end of the resulting
/// integer.
///
/// Please note this isn't the same operation as the `>>` shifting
/// Please note this isn't the same operation as the `<<` shifting
/// operator!
///
/// # Examples
Expand All @@ -463,7 +463,7 @@ assert_eq!(n.trailing_zeros(), 3);
/// wrapping the truncated bits to the beginning of the resulting
/// integer.
///
/// Please note this isn't the same operation as the `<<` shifting
/// Please note this isn't the same operation as the `>>` shifting
/// operator!
///
/// # Examples
Expand Down

0 comments on commit 769e75b

Please sign in to comment.