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:
@@ -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 }
|
||||||
|
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user