Skip to content

Fix mistake in documentation #24291

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 11, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/libcore/num/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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.
///
Expand Down Expand Up @@ -1457,7 +1457,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
Expand All @@ -1479,7 +1479,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.
///
Expand Down