about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorEsption <esption@gmail.com>2015-07-08 05:29:03 -0500
committerEsption <esption@gmail.com>2015-07-08 05:29:03 -0500
commit492f33a267d6d99d573b9e0558c25be6e1d03416 (patch)
tree8be6236528a86dcc817cb3771223c1c8ec0ea932 /src/libcore
parente6a9be10bc1b178dc0b23c505fc8f17e925cabb2 (diff)
downloadrust-492f33a267d6d99d573b9e0558c25be6e1d03416.tar.gz
rust-492f33a267d6d99d573b9e0558c25be6e1d03416.zip
Fixed some occurrences of 'if' being spelled 'iff'
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/num/mod.rs2
-rw-r--r--src/libcore/str/pattern.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs
index fd5ef4b1ccc..f7dd739f268 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 `self == 2^k` for some `k`.
         #[stable(feature = "rust1", since = "1.0.0")]
         #[inline]
         pub fn is_power_of_two(self) -> bool {
diff --git a/src/libcore/str/pattern.rs b/src/libcore/str/pattern.rs
index 707f7fcf2ab..b2b36925aab 100644
--- a/src/libcore/str/pattern.rs
+++ b/src/libcore/str/pattern.rs
@@ -739,7 +739,7 @@ struct TwoWaySearcher {
     (We also allow for the possibility of the *empty word*, a word of length zero).
 
     If x is any non-empty word, then an integer p with 0 < p <= |x| is said to be a
-    *period* for x iff for all i with 0 <= i <= |x| - p - 1, we have x[i] == x[i+p].
+    *period* for x if for all i with 0 <= i <= |x| - p - 1, we have x[i] == x[i+p].
     For example, both 1 and 2 are periods for the string "aa". As another example,
     the only period of the string "abcd" is 4.