about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Sloan <mgsloan@gmail.com>2025-01-18 18:34:29 -0700
committerGitHub <noreply@github.com>2025-01-18 18:34:29 -0700
commitde7f1b670b31d44f36c445a90af596772c9ea51d (patch)
tree3e0217c019582ba0413d9590eb10775e040fc03e
parenta3c65805adda4bbd6ab9973507119e1d36c53948 (diff)
downloadrust-de7f1b670b31d44f36c445a90af596772c9ea51d.tar.gz
rust-de7f1b670b31d44f36c445a90af596772c9ea51d.zip
Update library/core/src/slice/mod.rs
Co-authored-by: Ibraheem Ahmed <ibraheem@ibraheem.ca>
-rw-r--r--library/core/src/slice/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs
index 56f4b8203a8..3eaca01d7c4 100644
--- a/library/core/src/slice/mod.rs
+++ b/library/core/src/slice/mod.rs
@@ -3194,8 +3194,8 @@ impl<T> [T] {
     }
 
     /// Reorders the slice with a key extraction function such that the element at `index` is at a
-    /// sort-order position. All elements before `index` will have keys `<=` the key at `index`, and
-    /// all elements after will have keys `>=`.
+    /// sort-order position. All elements before `index` will have keys `<=` to the key at `index`, and
+    /// all elements after will have keys `>=` to it.
     ///
     /// This reordering is unstable (i.e. any element that compares equal to the nth element may end
     /// up at that position), in-place (i.e.  does not allocate), and runs in *O*(*n*) time. This