File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ pub trait ParallelSlice<T: Sync> {
49
49
}
50
50
}
51
51
52
- /// Returns a parallel iterator over all contiguous windows of
53
- /// length `size `. The windows overlap.
52
+ /// Returns a parallel iterator over all contiguous windows of length
53
+ /// `window_size `. The windows overlap.
54
54
///
55
55
/// # Examples
56
56
///
@@ -66,9 +66,13 @@ pub trait ParallelSlice<T: Sync> {
66
66
}
67
67
}
68
68
69
- /// Returns a parallel iterator over at most `size ` elements of
69
+ /// Returns a parallel iterator over at most `chunk_size ` elements of
70
70
/// `self` at a time. The chunks do not overlap.
71
71
///
72
+ /// If the number of elements in the iterator is not divisible by
73
+ /// `chunk_size`, the last chunk may be shorter than `chunk_size`. All
74
+ /// other chunks will have that exact length.
75
+ ///
72
76
/// # Examples
73
77
///
74
78
/// ```
@@ -120,9 +124,13 @@ pub trait ParallelSliceMut<T: Send> {
120
124
}
121
125
}
122
126
123
- /// Returns a parallel iterator over at most `size ` elements of
127
+ /// Returns a parallel iterator over at most `chunk_size ` elements of
124
128
/// `self` at a time. The chunks are mutable and do not overlap.
125
129
///
130
+ /// If the number of elements in the iterator is not divisible by
131
+ /// `chunk_size`, the last chunk may be shorter than `chunk_size`. All
132
+ /// other chunks will have that exact length.
133
+ ///
126
134
/// # Examples
127
135
///
128
136
/// ```
You can’t perform that action at this time.
0 commit comments