Skip to content

Commit a684228

Browse files
mgsloanibraheemdev
authored and
gitbot
committed
Update library/core/src/slice/mod.rs
Co-authored-by: Ibraheem Ahmed <ibraheem@ibraheem.ca>
1 parent e4cca54 commit a684228

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/slice/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -3229,8 +3229,7 @@ impl<T> [T] {
32293229
/// ```
32303230
/// let mut v = [-5i32, 4, 1, -3, 2];
32313231
///
3232-
/// // Find the items <= the median absolute value, the median absolute value, and >= the median
3233-
/// // absolute value.
3232+
/// // Find the items `<=` to the absolute median, the absolute median itself, and the items `>=` to it.
32343233
/// let (lesser, median, greater) = v.select_nth_unstable_by_key(2, |a| a.abs());
32353234
///
32363235
/// assert!(lesser == [1, 2] || lesser == [2, 1]);

0 commit comments

Comments
 (0)