Skip to content

Commit dc7c3cd

Browse files
committed
fix copy-paste typo in docs for wrapping_shr
1 parent 69adc88 commit dc7c3cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/num/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ macro_rules! int_impl {
644644
self.overflowing_shl(rhs).0
645645
}
646646

647-
/// Panic-free bitwise shift-left; yields `self >> mask(rhs)`,
647+
/// Panic-free bitwise shift-right; yields `self >> mask(rhs)`,
648648
/// where `mask` removes any high-order bits of `rhs` that
649649
/// would cause the shift to exceed the bitwidth of the type.
650650
///
@@ -1446,7 +1446,7 @@ macro_rules! uint_impl {
14461446
self.overflowing_shl(rhs).0
14471447
}
14481448

1449-
/// Panic-free bitwise shift-left; yields `self >> mask(rhs)`,
1449+
/// Panic-free bitwise shift-right; yields `self >> mask(rhs)`,
14501450
/// where `mask` removes any high-order bits of `rhs` that
14511451
/// would cause the shift to exceed the bitwidth of the type.
14521452
///

0 commit comments

Comments
 (0)