Skip to content

Commit 93bc64d

Browse files
authored
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
2 parents d5e59b8 + 8b48bac commit 93bc64d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/slice/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4383,7 +4383,7 @@ impl<T> [T] {
43834383
/// assert_eq!(first_three, &['a', 'b', 'c']);
43844384
/// ```
43854385
///
4386-
/// Splitting off the last two elements of a slice:
4386+
/// Splitting off a slice starting with the third element:
43874387
///
43884388
/// ```
43894389
/// let mut slice: &[_] = &['a', 'b', 'c', 'd'];
@@ -4449,7 +4449,7 @@ impl<T> [T] {
44494449
/// assert_eq!(first_three, &mut ['a', 'b', 'c']);
44504450
/// ```
44514451
///
4452-
/// Taking the last two elements of a slice:
4452+
/// Splitting off a slice starting with the third element:
44534453
///
44544454
/// ```
44554455
/// let mut slice: &mut [_] = &mut ['a', 'b', 'c', 'd'];

0 commit comments

Comments
 (0)