about summary refs log tree commit diff
diff options
context:
space:
mode:
-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 3eaca01d7c4..34fd78001e8 100644
--- a/library/core/src/slice/mod.rs
+++ b/library/core/src/slice/mod.rs
@@ -3162,8 +3162,8 @@ impl<T> [T] {
     /// ```
     /// let mut v = [-5i32, 4, 2, -3, 1];
     ///
-    /// // Find the items `>=` the median, the median, and `<=` the median, by using a reversed
-    /// // comparator.
+    /// // Find the items `>=` to the median, the median itself, and the items `<=` to it, by using
+    /// // a reversed comparator.
     /// let (before, median, after) = v.select_nth_unstable_by(2, |a, b| b.cmp(a));
     ///
     /// assert!(before == [4, 2] || before == [2, 4]);