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 cabfddf + 40f4044 commit 5ee831c
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 5ee831c

Please sign in to comment.