diff options
| author | Michael Sloan <mgsloan@gmail.com> | 2025-01-18 18:35:12 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-18 18:35:12 -0700 |
| commit | c0aa7b5cf081fdbde2c79c0a5f2de87b81b4db50 (patch) | |
| tree | 415c9670c4cb7d1e6b22715a59ddf6b77e5f7989 | |
| parent | de7f1b670b31d44f36c445a90af596772c9ea51d (diff) | |
| download | rust-c0aa7b5cf081fdbde2c79c0a5f2de87b81b4db50.tar.gz rust-c0aa7b5cf081fdbde2c79c0a5f2de87b81b4db50.zip | |
Update library/core/src/slice/mod.rs
Co-authored-by: Ibraheem Ahmed <ibraheem@ibraheem.ca>
| -rw-r--r-- | library/core/src/slice/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs index 3eaca01d7c4..34fd78001e8 100644 --- a/library/core/src/slice/mod.rs +++ b/library/core/src/slice/mod.rs @@ -3162,8 +3162,8 @@ impl<T> [T] { /// ``` /// let mut v = [-5i32, 4, 2, -3, 1]; /// - /// // Find the items `>=` the median, the median, and `<=` the median, by using a reversed - /// // comparator. + /// // Find the items `>=` to the median, the median itself, and the items `<=` to it, by using + /// // a reversed comparator. /// let (before, median, after) = v.select_nth_unstable_by(2, |a, b| b.cmp(a)); /// /// assert!(before == [4, 2] || before == [2, 4]); |
