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:35:22 -07:00
committed by GitHub
parent c0aa7b5cf0
commit 6ac44fa5fa
+3 -3
View File
@@ -3138,9 +3138,9 @@ pub fn select_nth_unstable(&mut self, index: usize) -> (&mut [T], &mut T, &mut [
///
/// Returns a triple partitioning the reordered slice:
///
/// * The unsorted subslice before `index` (elements all pass `compare(x, self[index]).is_le()`)
/// * The element at `index`
/// * The unsorted subslice after `index` (elements all pass `compare(x, self[index]).is_ge()`)
/// * The unsorted subslice before `index`, whose elements all satisfy `compare(x, self[index]).is_le()`.
/// * The element at `index`.
/// * The unsorted subslice after `index`, whose elements all satisfy `compare(x, self[index]).is_ge()`.
///
/// # Current implementation
///