Skip to content

Commit c0aa7b5

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/slice/mod.rs

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

0 commit comments

Comments
 (0)