Skip to content

Commit de7f1b6

Browse files
mgsloanibraheemdev
andauthored
Update library/core/src/slice/mod.rs
Co-authored-by: Ibraheem Ahmed <[email protected]>
1 parent a3c6580 commit de7f1b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/slice/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3194,8 +3194,8 @@ impl<T> [T] {
31943194
}
31953195

31963196
/// Reorders the slice with a key extraction function such that the element at `index` is at a
3197-
/// sort-order position. All elements before `index` will have keys `<=` the key at `index`, and
3198-
/// all elements after will have keys `>=`.
3197+
/// sort-order position. All elements before `index` will have keys `<=` to the key at `index`, and
3198+
/// all elements after will have keys `>=` to it.
31993199
///
32003200
/// This reordering is unstable (i.e. any element that compares equal to the nth element may end
32013201
/// up at that position), in-place (i.e. does not allocate), and runs in *O*(*n*) time. This

0 commit comments

Comments
 (0)