diff options
| author | Nathan Kleyn <nathan@nathankleyn.com> | 2019-04-18 14:48:15 +0100 |
|---|---|---|
| committer | Nathan Kleyn <nathan@nathankleyn.com> | 2019-04-18 14:48:15 +0100 |
| commit | d98afc51dcfe254d25925c4b675a6099dede4f47 (patch) | |
| tree | 2be6cb242ea1829da349444c5ff50ed69600d193 | |
| parent | e577e49b9f5ba0f1e9c3e66d67ef7cf82dc11c0e (diff) | |
| download | rust-d98afc51dcfe254d25925c4b675a6099dede4f47.tar.gz rust-d98afc51dcfe254d25925c4b675a6099dede4f47.zip | |
Fix small errors in docs for `rchunks_exact` and `rchunks_exact_mut`.
The documentation for `rchunks_exact` said it started at the beginning of the slice, bit it actually starts at the end of the slice. In addition, there were a couple of "of the slice of the slice" duplicate phrases going on for `rchunks_exact` and `rchunks_exact_mut`. This fixes #60068.
| -rw-r--r-- | src/libcore/slice/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/slice/mod.rs b/src/libcore/slice/mod.rs index 122ef9c79c2..dc1194d1b2d 100644 --- a/src/libcore/slice/mod.rs +++ b/src/libcore/slice/mod.rs @@ -838,7 +838,7 @@ impl<T> [T] { } /// Returns an iterator over `chunk_size` elements of the slice at a time, starting at the - /// beginning of the slice. + /// end of the slice. /// /// The chunks are slices and do not overlap. If `chunk_size` does not divide the length of the /// slice, then the last up to `chunk_size-1` elements will be omitted and can be retrieved @@ -849,7 +849,7 @@ impl<T> [T] { /// /// 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 - /// slice of the slice. + /// slice. /// /// # Panics /// @@ -890,7 +890,7 @@ impl<T> [T] { /// /// See [`rchunks_mut`] for a variant of this iterator that also returns the remainder as a /// smaller chunk, and [`chunks_exact_mut`] for the same iterator but starting at the beginning - /// of the slice of the slice. + /// of the slice. /// /// # Panics /// |
