File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1709,7 +1709,7 @@ pub trait Iterator {
1709
1709
/// Searches for an element in an iterator, returning its index.
1710
1710
///
1711
1711
/// `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
1713
1713
/// returns `true`, then `position()` returns `Some(index)`. If all of
1714
1714
/// them return `false`, it returns `None`.
1715
1715
///
@@ -1772,7 +1772,7 @@ pub trait Iterator {
1772
1772
///
1773
1773
/// `rposition()` takes a closure that returns `true` or `false`. It applies
1774
1774
/// 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
1776
1776
/// `Some(index)`. If all of them return `false`, it returns `None`.
1777
1777
///
1778
1778
/// `rposition()` is short-circuting; in other words, it will stop
You can’t perform that action at this time.
0 commit comments