mirror of
https://github.com/ziglang/zig.git
synced 2025-12-30 18:13:19 +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`.