Skip to content

Commit

Permalink
Rollup merge of #102326 - yancyribbens:splin-mut-doc-change, r=thomcc
Browse files Browse the repository at this point in the history
rustdoc: Update doc comment for splitn_mut to include mutable in the …

The doc comment for [splitn](https://github.com/rust-lang/rust/blob/master/library/core/src/slice/mod.rs#L2051:L2056) is the exact same as the comment for [splitn_mut](https://github.com/rust-lang/rust/blob/master/library/core/src/slice/mod.rs#L2079:L2084).  The doc comment for `splitn_mut` should instead say it's working on a mutable subslice.
  • Loading branch information
notriddle authored Sep 26, 2022
2 parents 76b2134 + 40f4044 commit 7381d7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/slice/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2076,7 +2076,7 @@ impl<T> [T] {
SplitN::new(self.split(pred), n)
}

/// Returns an iterator over subslices separated by elements that match
/// Returns an iterator over mutable subslices separated by elements that match
/// `pred`, limited to returning at most `n` items. The matched element is
/// not contained in the subslices.
///
Expand Down

0 comments on commit 7381d7d

Please sign in to comment.