authorgravatar for zac@zacoons.comzacoons <zac@zacoons.com> 2026-04-16 20:33:40+10:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-04-16 21:47:49+02:00
log176112558ff0c24c6798ace4f33c4e0ec1f7755e
tree8d4b0d62ff12f9af2c4a560249badfb2615ee8ee
parent50423dfa0bcfe7ff662d595216cba6ba754f8cbf
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.sort: clarify description of equalRange


1 files changed, 3 insertions(+), 3 deletions(-)

lib/std/sort.zig+3-3
......@@ -749,9 +749,9 @@ test partitionPoint {
749749
750750/// Returns a tuple of the lower and upper indices in `items` between which all
751751/// elements return `.eq` when given to `compareFn`.
752/// - If no element in `items` returns `.eq`, both indices are the
753/// index of the first element in `items` returning `.gt`.
754/// - If no element in `items` returns `.gt`, both indices equal `items.len`.
752/// If no element in `items` returns `.eq`, both indices are the index of the
753/// first element in `items` which returns `.gt`, or if no element returns `.gt`,
754/// both indices are `items.len`.
755755///
756756/// `items` must be sorted in ascending order with respect to `compareFn`:
757757/// ```