diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-04-11 19:05:34 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-04-11 19:05:34 +0530 |
| commit | 9e2e62077e22da8f4acceb5689e374249119977d (patch) | |
| tree | a6ccbac164f870420ab345a3e50af954d4fe4836 /src | |
| parent | f52682630e7eecfb46381bde2bab7a938ba0c8c5 (diff) | |
| parent | 9e68d236a7eda2e0483e3e4b7ea6a6772f867c0b (diff) | |
| download | rust-9e2e62077e22da8f4acceb5689e374249119977d.tar.gz rust-9e2e62077e22da8f4acceb5689e374249119977d.zip | |
Rollup merge of #24291 - xamgore:patch-1, r=steveklabnik
From [here](http://doc.rust-lang.org/nightly/std/primitive.i8.html): > `fn rotate_right(self, n: u32) -> i8` > Shifts the bits to the right by a specified __amount amount__, n, wrapping the truncated bits to the beginning of the resulting integer.
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/num/mod.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index 6f7a0884682..6c6b3acd936 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -217,7 +217,7 @@ pub trait Int reason = "pending integer conventions")] fn trailing_zeros(self) -> u32; - /// Shifts the bits to the left by a specified amount amount, `n`, wrapping + /// Shifts the bits to the left by a specified amount, `n`, wrapping /// the truncated bits to the end of the resulting integer. /// /// # Examples @@ -235,7 +235,7 @@ pub trait Int reason = "pending integer conventions")] fn rotate_left(self, n: u32) -> Self; - /// Shifts the bits to the right by a specified amount amount, `n`, wrapping + /// Shifts the bits to the right by a specified amount, `n`, wrapping /// the truncated bits to the beginning of the resulting integer. /// /// # Examples @@ -937,7 +937,7 @@ macro_rules! int_impl { (self as $UnsignedT).trailing_zeros() } - /// Shifts the bits to the left by a specified amount amount, `n`, + /// Shifts the bits to the left by a specified amount, `n`, /// wrapping the truncated bits to the end of the resulting integer. /// /// # Examples @@ -957,7 +957,7 @@ macro_rules! int_impl { (self as $UnsignedT).rotate_left(n) as $T } - /// Shifts the bits to the right by a specified amount amount, `n`, + /// Shifts the bits to the right by a specified amount, `n`, /// wrapping the truncated bits to the beginning of the resulting /// integer. /// @@ -1456,7 +1456,7 @@ macro_rules! uint_impl { unsafe { $cttz(self as $ActualT) as u32 } } - /// Shifts the bits to the left by a specified amount amount, `n`, + /// Shifts the bits to the left by a specified amount, `n`, /// wrapping the truncated bits to the end of the resulting integer. /// /// # Examples @@ -1478,7 +1478,7 @@ macro_rules! uint_impl { (self << n) | (self >> (($BITS - n) % $BITS)) } - /// Shifts the bits to the right by a specified amount amount, `n`, + /// Shifts the bits to the right by a specified amount, `n`, /// wrapping the truncated bits to the beginning of the resulting /// integer. /// |
