From fd89cf9b8f0cc893711eea6069429e94dbd68dcc Mon Sep 17 00:00:00 2001 From: Michael Sloan Date: Sat, 18 Jan 2025 18:35:41 -0700 Subject: [PATCH] Update library/core/src/slice/mod.rs Co-authored-by: Ibraheem Ahmed --- library/core/src/slice/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs index 2e697f885055..2527036556dd 100644 --- a/library/core/src/slice/mod.rs +++ b/library/core/src/slice/mod.rs @@ -3227,8 +3227,7 @@ impl [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]);