diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs index 058491b53a16..c9b8231e856c 100644 --- a/library/core/src/slice/mod.rs +++ b/library/core/src/slice/mod.rs @@ -4383,7 +4383,7 @@ pub fn partition_point
(&self, mut pred: P) -> usize
/// 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 @@ pub fn split_off<'a, R: OneSidedRange