Skip to content

Commit fbe2ec1

Browse files
committed
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.
2 parents c9976a1 + 9e68d23 commit fbe2ec1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/libcore/num/mod.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ pub trait Int
217217
reason = "pending integer conventions")]
218218
fn trailing_zeros(self) -> u32;
219219

220-
/// Shifts the bits to the left by a specified amount amount, `n`, wrapping
220+
/// Shifts the bits to the left by a specified amount, `n`, wrapping
221221
/// the truncated bits to the end of the resulting integer.
222222
///
223223
/// # Examples
@@ -235,7 +235,7 @@ pub trait Int
235235
reason = "pending integer conventions")]
236236
fn rotate_left(self, n: u32) -> Self;
237237

238-
/// Shifts the bits to the right by a specified amount amount, `n`, wrapping
238+
/// Shifts the bits to the right by a specified amount, `n`, wrapping
239239
/// the truncated bits to the beginning of the resulting integer.
240240
///
241241
/// # Examples
@@ -937,7 +937,7 @@ macro_rules! int_impl {
937937
(self as $UnsignedT).trailing_zeros()
938938
}
939939

940-
/// Shifts the bits to the left by a specified amount amount, `n`,
940+
/// Shifts the bits to the left by a specified amount, `n`,
941941
/// wrapping the truncated bits to the end of the resulting integer.
942942
///
943943
/// # Examples
@@ -957,7 +957,7 @@ macro_rules! int_impl {
957957
(self as $UnsignedT).rotate_left(n) as $T
958958
}
959959

960-
/// Shifts the bits to the right by a specified amount amount, `n`,
960+
/// Shifts the bits to the right by a specified amount, `n`,
961961
/// wrapping the truncated bits to the beginning of the resulting
962962
/// integer.
963963
///
@@ -1456,7 +1456,7 @@ macro_rules! uint_impl {
14561456
unsafe { $cttz(self as $ActualT) as u32 }
14571457
}
14581458

1459-
/// Shifts the bits to the left by a specified amount amount, `n`,
1459+
/// Shifts the bits to the left by a specified amount, `n`,
14601460
/// wrapping the truncated bits to the end of the resulting integer.
14611461
///
14621462
/// # Examples
@@ -1478,7 +1478,7 @@ macro_rules! uint_impl {
14781478
(self << n) | (self >> (($BITS - n) % $BITS))
14791479
}
14801480

1481-
/// Shifts the bits to the right by a specified amount amount, `n`,
1481+
/// Shifts the bits to the right by a specified amount, `n`,
14821482
/// wrapping the truncated bits to the beginning of the resulting
14831483
/// integer.
14841484
///

0 commit comments

Comments
 (0)