about summary refs log tree commit diff
path: root/library/core/src/slice/mod.rs
diff options
context:
space:
mode:
authorStuart Cook <Zalathar@users.noreply.github.com>2025-05-19 13:24:55 +1000
committerGitHub <noreply@github.com>2025-05-19 13:24:55 +1000
commit93bc64dd49eb261306d54b7507e652ff94bd76fc (patch)
tree9ad151f0444fe3885af08319262b235b40292f6a /library/core/src/slice/mod.rs
parentd5e59b8a382e7dfcaa6d3d9663fd7d58166352ce (diff)
parent8b48bac63d7774c03644a9ed0404c1c5595add62 (diff)
downloadrust-93bc64dd49eb261306d54b7507e652ff94bd76fc.tar.gz
rust-93bc64dd49eb261306d54b7507e652ff94bd76fc.zip
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
Diffstat (limited to 'library/core/src/slice/mod.rs')
-rw-r--r--library/core/src/slice/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs
index 058491b53a1..c9b8231e856 100644
--- a/library/core/src/slice/mod.rs
+++ b/library/core/src/slice/mod.rs
@@ -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'];