Skip to content

Commit 185f136

Browse files
committed
[std] fix the presentation of split_off_mut and split_off documentation
Signed-off-by: xizheyin <[email protected]>
1 parent a69bc17 commit 185f136

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 from the third element to the last:
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 from the third element to the last:
44534453
///
44544454
/// ```
44554455
/// let mut slice: &mut [_] = &mut ['a', 'b', 'c', 'd'];

0 commit comments

Comments
 (0)