zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit ebc8fe4899ba1d3eb881cbbd3f3fc5032ec58b58 (tree)
parent 17e0afd0e5d8850171bdfeba9456ebfd38d11e3a
Author: zacoons <zac@zacoons.com>
Date:   Thu, 16 Apr 2026 20:33:40 +1000

std.sort: clarify description of equalRange

Diffstat:
Mlib/std/sort.zig | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 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`: /// ```