about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTethys Svensson <freaken@freaken.dk>2022-07-17 14:18:36 +0200
committerGitHub <noreply@github.com>2022-07-17 14:18:36 +0200
commit8c58de5e2cffa9c04389cebf0fe3f8a3b7aaa4c3 (patch)
tree6217369e0ab601169cd581a97e2b100a34a47b1d
parent1cd72b734318720adb99dc72147bb8169ef76ffe (diff)
downloadrust-8c58de5e2cffa9c04389cebf0fe3f8a3b7aaa4c3.tar.gz
rust-8c58de5e2cffa9c04389cebf0fe3f8a3b7aaa4c3.zip
Fix for `rchunks_exact` doc
`rchunks_exact` is not a more optimized version of `chunks`, but of `rchunks`.
-rw-r--r--library/core/src/slice/mod.rs2
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