about summary refs log tree commit diff
path: root/src/libcollections
diff options
context:
space:
mode:
authorStephan Hügel <urschrei@gmail.com>2016-02-20 08:52:54 +0000
committerStephan Hügel <urschrei@gmail.com>2016-02-20 08:52:54 +0000
commit8c554e05ae1c0dae75defb0db2986e01befcbcd4 (patch)
tree7ee67563384e9642821ef848dc21e6baccd6dca1 /src/libcollections
parentd3ffad7a38d4a203b5c1f97db52ff45849a66b32 (diff)
downloadrust-8c554e05ae1c0dae75defb0db2986e01befcbcd4.tar.gz
rust-8c554e05ae1c0dae75defb0db2986e01befcbcd4.zip
Clarify chunks() and chunks_mut() iterator content
Closes #31773
Diffstat (limited to 'src/libcollections')
-rw-r--r--src/libcollections/slice.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcollections/slice.rs b/src/libcollections/slice.rs
index 6252e4888eb..e431a7c08b9 100644
--- a/src/libcollections/slice.rs
+++ b/src/libcollections/slice.rs
@@ -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`.