Skip to content

Commit

Permalink
Fix for rchunks_exact doc
Browse files Browse the repository at this point in the history
`rchunks_exact` is not a more optimized version of `chunks`, but of `rchunks`.
  • Loading branch information
TethysSvensson authored Jul 17, 2022
1 parent 1cd72b7 commit 8c58de5
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 8c58de5

Please sign in to comment.