Skip to content

Commit 769e75b

Browse files
committed
Fix left/right shift typo in wrapping rotate docs
This makes the note similar to the one found on rotate functions for primitive types like i32/u32.
1 parent a16dca3 commit 769e75b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/num/wrapping.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ assert_eq!(n.trailing_zeros(), 3);
437437
/// wrapping the truncated bits to the end of the resulting
438438
/// integer.
439439
///
440-
/// Please note this isn't the same operation as the `>>` shifting
440+
/// Please note this isn't the same operation as the `<<` shifting
441441
/// operator!
442442
///
443443
/// # Examples
@@ -463,7 +463,7 @@ assert_eq!(n.trailing_zeros(), 3);
463463
/// wrapping the truncated bits to the beginning of the resulting
464464
/// integer.
465465
///
466-
/// Please note this isn't the same operation as the `<<` shifting
466+
/// Please note this isn't the same operation as the `>>` shifting
467467
/// operator!
468468
///
469469
/// # Examples

0 commit comments

Comments
 (0)