Skip to content

Commit 01fc81f

Browse files
committed
Auto merge of #29683 - apasel422:typos, r=steveklabnik
r? @steveklabnik
2 parents 4648d2b + e807b1f commit 01fc81f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/iter.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1709,7 +1709,7 @@ pub trait Iterator {
17091709
/// Searches for an element in an iterator, returning its index.
17101710
///
17111711
/// `position()` takes a closure that returns `true` or `false`. It applies
1712-
/// this closure to each element of the iterator, and if if one of them
1712+
/// this closure to each element of the iterator, and if one of them
17131713
/// returns `true`, then `position()` returns `Some(index)`. If all of
17141714
/// them return `false`, it returns `None`.
17151715
///
@@ -1772,7 +1772,7 @@ pub trait Iterator {
17721772
///
17731773
/// `rposition()` takes a closure that returns `true` or `false`. It applies
17741774
/// this closure to each element of the iterator, starting from the end,
1775-
/// and if if one of them returns `true`, then `rposition()` returns
1775+
/// and if one of them returns `true`, then `rposition()` returns
17761776
/// `Some(index)`. If all of them return `false`, it returns `None`.
17771777
///
17781778
/// `rposition()` is short-circuting; in other words, it will stop

0 commit comments

Comments
 (0)