Update library/core/src/slice/mod.rs

Co-authored-by: Ibraheem Ahmed <ibraheem@ibraheem.ca>
This commit is contained in:
Michael Sloan 2025-01-18 18:33:02 -07:00 committed by GitHub
parent ecf68f3cd0
commit d39d0ecd57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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]);