Skip to content

Commit

Permalink
Update library/core/src/slice/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Ibraheem Ahmed <ibraheem@ibraheem.ca>
  • Loading branch information
2 people authored and gitbot committed Feb 20, 2025
1 parent abf598e commit be633eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/slice/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3104,7 +3104,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]);
Expand Down

0 comments on commit be633eb

Please sign in to comment.