Skip to content

Commit 9e68d23

Browse files
committed
Fix mistake in documentation
1 parent 9539627 commit 9e68d23

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
///
@@ -1457,7 +1457,7 @@ macro_rules! uint_impl {
14571457
unsafe { $cttz(self as $ActualT) as u32 }
14581458
}
14591459

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

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

0 commit comments

Comments
 (0)