diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2022-07-18 08:40:02 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-18 08:40:02 +0900 |
| commit | 7c98c92ebce286f1c1818973e94c66cff1b0b2f5 (patch) | |
| tree | a20cbb4eec3ab3ab1f9662260890f11858035257 | |
| parent | 7bbb753d0846164b12d5fcbc1de376c268f78533 (diff) | |
| parent | 8c58de5e2cffa9c04389cebf0fe3f8a3b7aaa4c3 (diff) | |
| download | rust-7c98c92ebce286f1c1818973e94c66cff1b0b2f5.tar.gz rust-7c98c92ebce286f1c1818973e94c66cff1b0b2f5.zip | |
Rollup merge of #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`.
| -rw-r--r-- | library/core/src/slice/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs index 77fd1ec2b8e..1270a72634b 100644 --- a/library/core/src/slice/mod.rs +++ b/library/core/src/slice/mod.rs @@ -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 |
