File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments