Skip to content

Commit

Permalink
Auto merge of #29683 - apasel422:typos, r=steveklabnik
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed Nov 8, 2015
2 parents 4648d2b + e807b1f commit 01fc81f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/iter.rs
Expand Up @@ -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`.
///
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 01fc81f

Please sign in to comment.