From 176112558ff0c24c6798ace4f33c4e0ec1f7755e Mon Sep 17 00:00:00 2001 From: zacoons Date: Thu, 16 Apr 2026 20:33:40 +1000 Subject: [PATCH] std.sort: clarify description of equalRange --- lib/std/sort.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/std/sort.zig b/lib/std/sort.zig index 9bee64ebe5..c35a847ade 100644 --- a/lib/std/sort.zig +++ b/lib/std/sort.zig @@ -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`: /// ```