diff options
| author | Esption <esption@gmail.com> | 2015-07-08 21:17:13 -0500 |
|---|---|---|
| committer | Esption <esption@gmail.com> | 2015-07-08 21:17:13 -0500 |
| commit | dad8cd19d332e482e0c494600db5da596240f572 (patch) | |
| tree | 33492458cae11f159d944c9220ab7fc67fcc2fdc /src/libcore | |
| parent | 492f33a267d6d99d573b9e0558c25be6e1d03416 (diff) | |
| download | rust-dad8cd19d332e482e0c494600db5da596240f572.tar.gz rust-dad8cd19d332e482e0c494600db5da596240f572.zip | |
'iff' for docs to 'if and only if'
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/num/mod.rs | 2 | ||||
| -rw-r--r-- | src/libcore/str/pattern.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index f7dd739f268..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` if `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 { diff --git a/src/libcore/str/pattern.rs b/src/libcore/str/pattern.rs index b2b36925aab..707f7fcf2ab 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 if for all i with 0 <= i <= |x| - p - 1, we have x[i] == x[i+p]. + *period* for x iff 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. |
