mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Update library/core/src/slice/mod.rs
Co-authored-by: Ibraheem Ahmed <ibraheem@ibraheem.ca>
This commit is contained in:
parent
ecf68f3cd0
commit
d39d0ecd57
@ -3102,7 +3102,7 @@ impl<T> [T] {
|
||||
/// ```
|
||||
/// let mut v = [-5i32, 4, 2, -3, 1];
|
||||
///
|
||||
/// // Find the items `<=` the median, the median, and `>=` the median.
|
||||
/// // Find the items `<=` to the median, the median itself, and the items `>=` to it.
|
||||
/// let (lesser, median, greater) = v.select_nth_unstable(2);
|
||||
///
|
||||
/// assert!(lesser == [-3, -5] || lesser == [-5, -3]);
|
||||
|
Loading…
Reference in New Issue
Block a user