Skip to content

Commit 7c98c92

Browse files
authored
Rollup merge of rust-lang#99374 - TethysSvensson:patch-1, r=Dylan-DPC
Fix doc for `rchunks_exact` `rchunks_exact` is not a more optimized version of `chunks`, but of `rchunks`.
2 parents 7bbb753 + 8c58de5 commit 7c98c92

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)