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

View file

@ -3078,9 +3078,9 @@ impl<T> [T] {
///
/// Returns a triple partitioning the reordered slice:
///
/// * The unsorted subslice before `index` (elements all pass `x <= self[index]`)
/// * The element at `index`
/// * The unsorted subslice after `index` (elements all pass `x >= self[index]`)
/// * The unsorted subslice before `index`, whose elements all satisfy `x <= self[index]`.
/// * The element at `index`.
/// * The unsorted subslice after `index`, whose elements all satisfy `x >= self[index]`.
///
/// # Current implementation
///