Auto merge of #26878 - Esption:master, r=pnkfelix

I noticed in docs, specifically http://doc.rust-lang.org/std/primitive.u8.html#method.is_power_of_two, that it was like this, and it was apparently in multiple places too.

Didn't change any occurrences through the cross-depo things. There's a lot in /src/llvm/ for instance, but I'm not confident on how to go about sending fixes for those, so this is just what's in the base rust depo.

r? @steveklabnik
This commit is contained in:
bors
2015-07-11 19:18:02 +00:00
2 changed files with 2 additions and 2 deletions

View File

@@ -108,7 +108,7 @@ impl<T> VecDeque<T> {
ptr::write(self.ptr.offset(off as isize), t); ptr::write(self.ptr.offset(off as isize), t);
} }
/// Returns true iff the buffer is at capacity /// Returns true if and only if the buffer is at capacity
#[inline] #[inline]
fn is_full(&self) -> bool { self.cap - self.len() == 1 } fn is_full(&self) -> bool { self.cap - self.len() == 1 }

View File

@@ -1126,7 +1126,7 @@ macro_rules! uint_impl {
acc acc
} }
/// Returns `true` iff `self == 2^k` for some `k`. /// Returns `true` if and only if `self == 2^k` for some `k`.
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
#[inline] #[inline]
pub fn is_power_of_two(self) -> bool { pub fn is_power_of_two(self) -> bool {