authorgravatar for zac@zacoons.comzacoons <zac@zacoons.com> 2026-04-16 20:33:40+10:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-04-16 19:42:00+02:00
logebc8fe4899ba1d3eb881cbbd3f3fc5032ec58b58
treef5ac7fea4e1eed2c85de8a7f3e50aed955c8ff50
parent17e0afd0e5d8850171bdfeba9456ebfd38d11e3a

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 {...@@ -749,9 +749,9 @@ test partitionPoint {
749749
750/// Returns a tuple of the lower and upper indices in `items` between which all750/// Returns a tuple of the lower and upper indices in `items` between which all
751/// elements return `.eq` when given to `compareFn`.751/// elements return `.eq` when given to `compareFn`.
752/// - If no element in `items` returns `.eq`, both indices are the752/// If no element in `items` returns `.eq`, both indices are the index of the
753/// index of the first element in `items` returning `.gt`.753/// first element in `items` which returns `.gt`, or if no element returns `.gt`,
754/// - If no element in `items` returns `.gt`, both indices equal `items.len`.754/// both indices are `items.len`.
755///755///
756/// `items` must be sorted in ascending order with respect to `compareFn`:756/// `items` must be sorted in ascending order with respect to `compareFn`:
757/// ```757/// ```