Skip to content

Commit e4bd75f

Browse files
mgsloanibraheemdev
authored and
gitbot
committed
Update library/core/src/slice/mod.rs
Co-authored-by: Ibraheem Ahmed <[email protected]>
1 parent 43231ef commit e4bd75f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/slice/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3164,8 +3164,8 @@ impl<T> [T] {
31643164
/// ```
31653165
/// let mut v = [-5i32, 4, 2, -3, 1];
31663166
///
3167-
/// // Find the items `>=` the median, the median, and `<=` the median, by using a reversed
3168-
/// // comparator.
3167+
/// // Find the items `>=` to the median, the median itself, and the items `<=` to it, by using
3168+
/// // a reversed comparator.
31693169
/// let (before, median, after) = v.select_nth_unstable_by(2, |a, b| b.cmp(a));
31703170
///
31713171
/// assert!(before == [4, 2] || before == [2, 4]);

0 commit comments

Comments
 (0)