about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Sloan <mgsloan@gmail.com>2025-01-18 18:35:41 -0700
committerGitHub <noreply@github.com>2025-01-18 18:35:41 -0700
commitfd89cf9b8f0cc893711eea6069429e94dbd68dcc (patch)
treee67c3a07339bd816339b3ec43bff084e12bcc45b
parent6ac44fa5faf20b6c1b43b6b3cefc13b5ab4b2de0 (diff)
downloadrust-fd89cf9b8f0cc893711eea6069429e94dbd68dcc.tar.gz
rust-fd89cf9b8f0cc893711eea6069429e94dbd68dcc.zip
Update library/core/src/slice/mod.rs
Co-authored-by: Ibraheem Ahmed <ibraheem@ibraheem.ca>
-rw-r--r--library/core/src/slice/mod.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs
index 2e697f88505..2527036556d 100644
--- a/library/core/src/slice/mod.rs
+++ b/library/core/src/slice/mod.rs
@@ -3227,8 +3227,7 @@ impl<T> [T] {
     /// ```
     /// let mut v = [-5i32, 4, 1, -3, 2];
     ///
-    /// // Find the items <= the median absolute value, the median absolute value, and >= the median
-    /// // absolute value.
+    /// // Find the items `<=` to the absolute median, the absolute median itself, and the items `>=` to it.
     /// let (lesser, median, greater) = v.select_nth_unstable_by_key(2, |a| a.abs());
     ///
     /// assert!(lesser == [1, 2] || lesser == [2, 1]);