Skip to content

Commit a410ebc

Browse files
committed
add note to array_chunks
1 parent 95fa63e commit a410ebc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/core/src/slice/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,8 @@ impl<T> [T] {
848848
/// slice, then the last up to `N-1` elements will be omitted and can be retrieved
849849
/// from the `remainder` function of the iterator.
850850
///
851+
/// This method is the const generic equivalent of [`chunks_exact`].
852+
///
851853
/// # Panics
852854
///
853855
/// Panics if `N` is 0.
@@ -864,7 +866,7 @@ impl<T> [T] {
864866
/// assert_eq!(iter.remainder(), &['m']);
865867
/// ```
866868
///
867-
/// [`chunks`]: #method.chunks
869+
/// [`chunks_exact`]: #method.chunks_exact
868870
#[unstable(feature = "array_chunks", issue = "none")]
869871
#[inline]
870872
pub fn array_chunks<const N: usize>(&self) -> ArrayChunks<'_, T, N> {

0 commit comments

Comments
 (0)