mirror of
https://github.com/ziglang/zig.git
synced 2026-01-15 11:55:14 +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`.