We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95fa63e commit a410ebcCopy full SHA for a410ebc
library/core/src/slice/mod.rs
@@ -848,6 +848,8 @@ impl<T> [T] {
848
/// slice, then the last up to `N-1` elements will be omitted and can be retrieved
849
/// from the `remainder` function of the iterator.
850
///
851
+ /// This method is the const generic equivalent of [`chunks_exact`].
852
+ ///
853
/// # Panics
854
855
/// Panics if `N` is 0.
@@ -864,7 +866,7 @@ impl<T> [T] {
864
866
/// assert_eq!(iter.remainder(), &['m']);
865
867
/// ```
868
- /// [`chunks`]: #method.chunks
869
+ /// [`chunks_exact`]: #method.chunks_exact
870
#[unstable(feature = "array_chunks", issue = "none")]
871
#[inline]
872
pub fn array_chunks<const N: usize>(&self) -> ArrayChunks<'_, T, N> {
0 commit comments