File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1748,9 +1748,9 @@ impl<T> [T] {
1748
1748
/// Returns an iterator over the slice producing non-overlapping runs
1749
1749
/// of elements using the predicate to separate them.
1750
1750
///
1751
- /// The predicate is called on two elements following themselves ,
1752
- /// it means the predicate is called on `slice[0]` and `slice[1]`
1753
- /// then on `slice[1]` and `slice[2]` and so on.
1751
+ /// The predicate is called for every pair of consecutive elements ,
1752
+ /// meaning that it is called on `slice[0]` and `slice[1]`,
1753
+ /// followed by `slice[1]` and `slice[2]`, and so on.
1754
1754
///
1755
1755
/// # Examples
1756
1756
///
@@ -1789,9 +1789,9 @@ impl<T> [T] {
1789
1789
/// Returns an iterator over the slice producing non-overlapping mutable
1790
1790
/// runs of elements using the predicate to separate them.
1791
1791
///
1792
- /// The predicate is called on two elements following themselves ,
1793
- /// it means the predicate is called on `slice[0]` and `slice[1]`
1794
- /// then on `slice[1]` and `slice[2]` and so on.
1792
+ /// The predicate is called for every pair of consecutive elements ,
1793
+ /// meaning that it is called on `slice[0]` and `slice[1]`,
1794
+ /// followed by `slice[1]` and `slice[2]`, and so on.
1795
1795
///
1796
1796
/// # Examples
1797
1797
///
You can’t perform that action at this time.
0 commit comments