We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
split_off_mut
split_off
1 parent a69bc17 commit 8b48bacCopy full SHA for 8b48bac
library/core/src/slice/mod.rs
@@ -4383,7 +4383,7 @@ impl<T> [T] {
4383
/// assert_eq!(first_three, &['a', 'b', 'c']);
4384
/// ```
4385
///
4386
- /// Splitting off the last two elements of a slice:
+ /// Splitting off a slice starting with the third element:
4387
4388
4389
/// let mut slice: &[_] = &['a', 'b', 'c', 'd'];
@@ -4449,7 +4449,7 @@ impl<T> [T] {
4449
/// assert_eq!(first_three, &mut ['a', 'b', 'c']);
4450
4451
4452
- /// Taking the last two elements of a slice:
4453
4454
4455
/// let mut slice: &mut [_] = &mut ['a', 'b', 'c', 'd'];
0 commit comments