about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-07-11 19:18:02 +0000
committerbors <bors@rust-lang.org>2015-07-11 19:18:02 +0000
commitd18eb74009924648cf8b6fe652f6ac4ab2a37718 (patch)
treeedf8bbcbf5ac7a7840158e2ca2d2bee0a3ca26a0 /src/libcore
parent1b28ffa5216c845d1cef6b0cb3e5ac7db12025d0 (diff)
parentdad8cd19d332e482e0c494600db5da596240f572 (diff)
downloadrust-d18eb74009924648cf8b6fe652f6ac4ab2a37718.tar.gz
rust-d18eb74009924648cf8b6fe652f6ac4ab2a37718.zip
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
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/num/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs
index fd5ef4b1ccc..3fd3d4a42b2 100644
--- a/src/libcore/num/mod.rs
+++ b/src/libcore/num/mod.rs
@@ -1126,7 +1126,7 @@ macro_rules! uint_impl {
             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")]
         #[inline]
         pub fn is_power_of_two(self) -> bool {