Skip to content

Commit fd89cf9

Browse files
mgsloanibraheemdev
andauthored
Update library/core/src/slice/mod.rs
Co-authored-by: Ibraheem Ahmed <[email protected]>
1 parent 6ac44fa commit fd89cf9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

library/core/src/slice/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -3227,8 +3227,7 @@ impl<T> [T] {
32273227
/// ```
32283228
/// let mut v = [-5i32, 4, 1, -3, 2];
32293229
///
3230-
/// // Find the items <= the median absolute value, the median absolute value, and >= the median
3231-
/// // absolute value.
3230+
/// // Find the items `<=` to the absolute median, the absolute median itself, and the items `>=` to it.
32323231
/// let (lesser, median, greater) = v.select_nth_unstable_by_key(2, |a| a.abs());
32333232
///
32343233
/// assert!(lesser == [1, 2] || lesser == [2, 1]);

0 commit comments

Comments
 (0)