Skip to content

Commit 8c554e0

Browse files
committed
Clarify chunks() and chunks_mut() iterator content
Closes #31773
1 parent d3ffad7 commit 8c554e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcollections/slice.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ impl<T> [T] {
406406
core_slice::SliceExt::windows(self, size)
407407
}
408408

409-
/// Returns an iterator over `size` elements of the slice at a
409+
/// Returns an iterator over `size` slices of the slice at a
410410
/// time. The chunks do not overlap. If `size` does not divide the
411411
/// length of the slice, then the last chunk will not have length
412412
/// `size`.
@@ -432,7 +432,7 @@ impl<T> [T] {
432432
core_slice::SliceExt::chunks(self, size)
433433
}
434434

435-
/// Returns an iterator over `chunk_size` elements of the slice at a time.
435+
/// Returns an iterator over `chunk_size` slices of the slice at a time.
436436
/// The chunks are mutable and do not overlap. If `chunk_size` does
437437
/// not divide the length of the slice, then the last chunk will not
438438
/// have length `chunk_size`.

0 commit comments

Comments
 (0)