diff options
| author | Zach Reizner <zach297@gmail.com> | 2015-12-13 12:00:00 -0800 |
|---|---|---|
| committer | Zach Reizner <zach297@gmail.com> | 2015-12-13 12:00:00 -0800 |
| commit | dc7c3cd5c7115a8e7878922f5300d2f911be9be8 (patch) | |
| tree | 1616452024c501449bdeb8262493f665f20ee45b | |
| parent | 69adc883aa6d0660ba1a235a2cee56c5cffd38e0 (diff) | |
| download | rust-dc7c3cd5c7115a8e7878922f5300d2f911be9be8.tar.gz rust-dc7c3cd5c7115a8e7878922f5300d2f911be9be8.zip | |
fix copy-paste typo in docs for wrapping_shr
| -rw-r--r-- | src/libcore/num/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index 4f3c1256709..8abb12706a5 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -644,7 +644,7 @@ macro_rules! int_impl { self.overflowing_shl(rhs).0 } - /// Panic-free bitwise shift-left; yields `self >> mask(rhs)`, + /// Panic-free bitwise shift-right; yields `self >> mask(rhs)`, /// where `mask` removes any high-order bits of `rhs` that /// would cause the shift to exceed the bitwidth of the type. /// @@ -1446,7 +1446,7 @@ macro_rules! uint_impl { self.overflowing_shl(rhs).0 } - /// Panic-free bitwise shift-left; yields `self >> mask(rhs)`, + /// Panic-free bitwise shift-right; yields `self >> mask(rhs)`, /// where `mask` removes any high-order bits of `rhs` that /// would cause the shift to exceed the bitwidth of the type. /// |
