Skip to content

Commit

Permalink
Rollup merge of rust-lang#60080 - nathankleyn:fix-issue-60068, r=Centril
Browse files Browse the repository at this point in the history
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 rust-lang#60068.
  • Loading branch information
Centril authored Apr 18, 2019
2 parents 38a30f4 + d98afc5 commit aecf059
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libcore/slice/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
///
Expand Down Expand Up @@ -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
///
Expand Down

0 comments on commit aecf059

Please sign in to comment.