Rollup merge of #141110 - xizheyin:issue-141107, r=workingjubilee
[std] fix the presentation of `split_off_mut` and `split_off` documentation Fixes #141107 r? libs
This commit is contained in:
commit
93bc64dd49
1 changed files with 2 additions and 2 deletions
|
|
@ -4383,7 +4383,7 @@ impl<T> [T] {
|
|||
/// assert_eq!(first_three, &['a', 'b', 'c']);
|
||||
/// ```
|
||||
///
|
||||
/// Splitting off the last two elements of a slice:
|
||||
/// Splitting off a slice starting with the third element:
|
||||
///
|
||||
/// ```
|
||||
/// let mut slice: &[_] = &['a', 'b', 'c', 'd'];
|
||||
|
|
@ -4449,7 +4449,7 @@ impl<T> [T] {
|
|||
/// assert_eq!(first_three, &mut ['a', 'b', 'c']);
|
||||
/// ```
|
||||
///
|
||||
/// Taking the last two elements of a slice:
|
||||
/// Splitting off a slice starting with the third element:
|
||||
///
|
||||
/// ```
|
||||
/// let mut slice: &mut [_] = &mut ['a', 'b', 'c', 'd'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue