]> git.lizzy.rs Git - rust.git/commitdiff
add note to array_chunks
authorBastian Kauschke <bastian_kauschke@hotmail.de>
Mon, 20 Jul 2020 21:33:22 +0000 (23:33 +0200)
committerBastian Kauschke <bastian_kauschke@hotmail.de>
Fri, 31 Jul 2020 06:24:57 +0000 (08:24 +0200)
library/core/src/slice/mod.rs

index e33dad38d4b0d04c7c10d017721e6202403c22f5..fdf3c7b3f637e87cb8f41a54a763d8cb35e8d09c 100644 (file)
@@ -848,6 +848,8 @@ pub fn chunks_exact_mut(&mut self, chunk_size: usize) -> ChunksExactMut<'_, T> {
     /// slice, then the last up to `N-1` elements will be omitted and can be retrieved
     /// from the `remainder` function of the iterator.
     ///
+    /// This method is the const generic equivalent of [`chunks_exact`].
+    ///
     /// # Panics
     ///
     /// Panics if `N` is 0.
@@ -864,7 +866,7 @@ pub fn chunks_exact_mut(&mut self, chunk_size: usize) -> ChunksExactMut<'_, T> {
     /// assert_eq!(iter.remainder(), &['m']);
     /// ```
     ///
-    /// [`chunks`]: #method.chunks
+    /// [`chunks_exact`]: #method.chunks_exact
     #[unstable(feature = "array_chunks", issue = "none")]
     #[inline]
     pub fn array_chunks<const N: usize>(&self) -> ArrayChunks<'_, T, N> {