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
+1 -1
View File
@@ -3076,7 +3076,7 @@ pub fn sort_unstable_by_key<K, F>(&mut self, mut f: F)
/// 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`.