Skip to content

Commit

Permalink
Rollup merge of rust-lang#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 c3226d0 + 8c58de5 commit 5e4b6fa
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 5e4b6fa

Please sign in to comment.