Clarify chunks() and chunks_mut() iterator content

Closes #31773
This commit is contained in:
Stephan Hügel 2016-02-20 08:52:54 +00:00
parent d3ffad7a38
commit 8c554e05ae
1 changed files with 2 additions and 2 deletions

View File

@ -406,7 +406,7 @@ impl<T> [T] {
core_slice::SliceExt::windows(self, size)
}
/// Returns an iterator over `size` elements of the slice at a
/// Returns an iterator over `size` slices of the slice at a
/// time. The chunks do not overlap. If `size` does not divide the
/// length of the slice, then the last chunk will not have length
/// `size`.
@ -432,7 +432,7 @@ impl<T> [T] {
core_slice::SliceExt::chunks(self, size)
}
/// Returns an iterator over `chunk_size` elements of the slice at a time.
/// Returns an iterator over `chunk_size` slices of the slice at a time.
/// The chunks are mutable and do not overlap. If `chunk_size` does
/// not divide the length of the slice, then the last chunk will not
/// have length `chunk_size`.