Skip to content

Commit

Permalink
Rollup merge of rust-lang#56574 - cbarrick:master, r=varkor
Browse files Browse the repository at this point in the history
Fix a stutter in the docs for slice::exact_chunks

Before this change, the docs for `slice::exact_chunks` reads like this:

> See `chunks` for a variant of this iterator that also returns the remainder as a smaller chunk, and `rchunks_exact` for the same iterator but starting at the end of the slice of the slice.

Notice that stutter at the end? This commit fixes it.
  • Loading branch information
kennytm authored Dec 7, 2018
2 parents 06f3b57 + b6d3668 commit a40aa45
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libcore/slice/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,7 @@ impl<T> [T] {
/// resulting code better than in the case of [`chunks`].
///
/// See [`chunks`] for a variant of this iterator that also returns the remainder as a smaller
/// chunk, and [`rchunks_exact`] for the same iterator but starting at the end of the slice of
/// the slice.
/// chunk, and [`rchunks_exact`] for the same iterator but starting at the end of the slice.
///
/// # Panics
///
Expand Down

0 comments on commit a40aa45

Please sign in to comment.