mirror of
https://github.com/ziglang/zig.git
synced 2025-12-31 02:23:22 +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`.