mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-05-04 16:53:26 +03:00
4e2cec265d
## Summary of changes + Make adjustments to the `allocator` field and ensure the below tests pass: ```sh zig test lib/std/std.zig --zig-lib-dir lib zig build test-std -Dno-matrix --summary all ``` + Rename `add` to `push` and `remove` to `pop` in methods and tests + Incorporate the functionality of `pop` in `popOrNull`, then rename the `popOrNull` to `pop` and update tests + Use `.empty` to set default field values and rename the `init` method to `initContext` + Improve variable types in tests: min heap uses the less than context function and max heap uses greater than context function + Remove the `dump` method as its not being used anywhere + Document methods `clearRetainingCapacity`, `clearAndFree`, `update`, and `ensureTotalCapacityPrecise` Closes https://codeberg.org/ziglang/zig/issues/31298 Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31299 Reviewed-by: Andrew Kelley <andrew@ziglang.org> Co-authored-by: Saurabh Mishra <saurabh.m@proton.me> Co-committed-by: Saurabh Mishra <saurabh.m@proton.me>