std.sort: clarify description of equalRange

This commit is contained in:
zacoons
2026-04-16 20:33:40 +10:00
committed by Andrew Kelley
parent 17e0afd0e5
commit ebc8fe4899
+3 -3
View File
@@ -749,9 +749,9 @@ test partitionPoint {
/// Returns a tuple of the lower and upper indices in `items` between which all
/// elements return `.eq` when given to `compareFn`.
/// - If no element in `items` returns `.eq`, both indices are the
/// index of the first element in `items` returning `.gt`.
/// - If no element in `items` returns `.gt`, both indices equal `items.len`.
/// If no element in `items` returns `.eq`, both indices are the index of the
/// first element in `items` which returns `.gt`, or if no element returns `.gt`,
/// both indices are `items.len`.
///
/// `items` must be sorted in ascending order with respect to `compareFn`:
/// ```