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 @@ -1737,9 +1737,9 @@ impl<T> [T] {
1737
1737
/// Returns an iterator over the slice producing non-overlapping runs
1738
1738
/// of elements using the predicate to separate them.
1739
1739
///
1740
- /// The predicate is called on two elements following themselves ,
1741
- /// it means the predicate is called on `slice[0]` and `slice[1]`
1742
- /// then on `slice[1]` and `slice[2]` and so on.
1740
+ /// The predicate is called for every pair of consecutive elements ,
1741
+ /// meaning that it is called on `slice[0]` and `slice[1]`,
1742
+ /// followed by `slice[1]` and `slice[2]`, and so on.
1743
1743
///
1744
1744
/// # Examples
1745
1745
///
@@ -1778,9 +1778,9 @@ impl<T> [T] {
1778
1778
/// Returns an iterator over the slice producing non-overlapping mutable
1779
1779
/// runs of elements using the predicate to separate them.
1780
1780
///
1781
- /// The predicate is called on two elements following themselves ,
1782
- /// it means the predicate is called on `slice[0]` and `slice[1]`
1783
- /// then on `slice[1]` and `slice[2]` and so on.
1781
+ /// The predicate is called for every pair of consecutive elements ,
1782
+ /// meaning that it is called on `slice[0]` and `slice[1]`,
1783
+ /// followed by `slice[1]` and `slice[2]`, and so on.
1784
1784
///
1785
1785
/// # Examples
1786
1786
///
You can’t perform that action at this time.
0 commit comments