Skip to content

Commit 8c58de5

Browse files
Fix for rchunks_exact doc
`rchunks_exact` is not a more optimized version of `chunks`, but of `rchunks`.
1 parent 1cd72b7 commit 8c58de5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/slice/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@ impl<T> [T] {
13401340
/// from the `remainder` function of the iterator.
13411341
///
13421342
/// Due to each chunk having exactly `chunk_size` elements, the compiler can often optimize the
1343-
/// resulting code better than in the case of [`chunks`].
1343+
/// resulting code better than in the case of [`rchunks`].
13441344
///
13451345
/// See [`rchunks`] for a variant of this iterator that also returns the remainder as a smaller
13461346
/// chunk, and [`chunks_exact`] for the same iterator but starting at the beginning of the

0 commit comments

Comments
 (0)