about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-11-08 05:31:21 +0000
committerbors <bors@rust-lang.org>2015-11-08 05:31:21 +0000
commit01fc81f249cf8d81bbb5f1d6675bfb14fe20afdd (patch)
treebe05d85525331eea63f3267a385ee802177490d4 /src/libcore
parent4648d2b0f73fe6524f81a1d4c0b2ee7e47589a13 (diff)
parente807b1f5abcbea498d64778a3dbd37f55810d4c1 (diff)
downloadrust-01fc81f249cf8d81bbb5f1d6675bfb14fe20afdd.tar.gz
rust-01fc81f249cf8d81bbb5f1d6675bfb14fe20afdd.zip
Auto merge of #29683 - apasel422:typos, r=steveklabnik
r? @steveklabnik
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/iter.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs
index a9388793f33..e6dae771792 100644
--- a/src/libcore/iter.rs
+++ b/src/libcore/iter.rs
@@ -1709,7 +1709,7 @@ pub trait Iterator {
     /// Searches for an element in an iterator, returning its index.
     ///
     /// `position()` takes a closure that returns `true` or `false`. It applies
-    /// this closure to each element of the iterator, and if if one of them
+    /// this closure to each element of the iterator, and if one of them
     /// returns `true`, then `position()` returns `Some(index)`. If all of
     /// them return `false`, it returns `None`.
     ///
@@ -1772,7 +1772,7 @@ pub trait Iterator {
     ///
     /// `rposition()` takes a closure that returns `true` or `false`. It applies
     /// this closure to each element of the iterator, starting from the end,
-    /// and if if one of them returns `true`, then `rposition()` returns
+    /// and if one of them returns `true`, then `rposition()` returns
     /// `Some(index)`. If all of them return `false`, it returns `None`.
     ///
     /// `rposition()` is short-circuting; in other words, it will stop