mirror of
https://github.com/ziglang/zig.git
synced 2026-01-02 11:33:21 +00:00
I've run into this footgun enough times, nearly every time I want `ensureUnusedCapacity`, not `ensureCapacity`. This commit deprecates `ensureCapacity` in favor of `ensureTotalCapacity` and introduces `ensureUnusedCapacity`.