1
Fork 0

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:33 -07:00 committed by GitHub
parent 305bd856b2
commit a506f9d210
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3076,7 +3076,7 @@ impl<T> [T] {
/// up at that position), in-place (i.e. does not allocate), and runs in *O*(*n*) time. This
/// function is also known as "kth element" in other libraries.
///
/// Returns a triple partitioning the reordered slice:
/// Returns a triple that partitions the reordered slice:
///
/// * The unsorted subslice before `index`, whose elements all satisfy `x <= self[index]`.
/// * The element at `index`.