Skip to content

Commit 7381d7d

Browse files
authored
Rollup merge of #102326 - yancyribbens:splin-mut-doc-change, r=thomcc
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.
2 parents 76b2134 + 40f4044 commit 7381d7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: library/core/src/slice/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2076,7 +2076,7 @@ impl<T> [T] {
20762076
SplitN::new(self.split(pred), n)
20772077
}
20782078

2079-
/// Returns an iterator over subslices separated by elements that match
2079+
/// Returns an iterator over mutable subslices separated by elements that match
20802080
/// `pred`, limited to returning at most `n` items. The matched element is
20812081
/// not contained in the subslices.
20822082
///

0 commit comments

Comments
 (0)