Skip to content

Commit

Permalink
Rollup merge of #99374 - TethysSvensson:patch-1, r=Dylan-DPC
Browse files Browse the repository at this point in the history
Fix doc for `rchunks_exact`

`rchunks_exact` is not a more optimized version of `chunks`, but of `rchunks`.
  • Loading branch information
JohnTitor authored Jul 17, 2022
2 parents 7bbb753 + 8c58de5 commit 7c98c92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/slice/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,7 @@ impl<T> [T] {
/// from the `remainder` function of the iterator.
///
/// Due to each chunk having exactly `chunk_size` elements, the compiler can often optimize the
/// resulting code better than in the case of [`chunks`].
/// resulting code better than in the case of [`rchunks`].
///
/// See [`rchunks`] for a variant of this iterator that also returns the remainder as a smaller
/// chunk, and [`chunks_exact`] for the same iterator but starting at the beginning of the
Expand Down

0 comments on commit 7c98c92

Please sign in to comment.