aboutsummaryrefslogtreecommitdiff
path: root/src/InternPool.zig
diff options
context:
space:
mode:
authorIlia Choly <ilia.choly@gmail.com>2024-11-03 09:47:57 -0500
committerAndrew Kelley <andrew@ziglang.org>2024-11-24 18:19:11 -0500
commite2f24a2d7096e4a28ba74513ed9473da0b7fb372 (patch)
tree0a1578713fd639963679874a900948649730a9d8 /src/InternPool.zig
parentc2db5d9cd1c83a5aed20a7e2ec8fdf874f13e3db (diff)
downloadzig-e2f24a2d7096e4a28ba74513ed9473da0b7fb372.tar.gz
zig-e2f24a2d7096e4a28ba74513ed9473da0b7fb372.zip
Allocator.free: document zero-length behavior
It wasn't immediately clear from the implementation whether passing zero-length memory to free() was undefined behavior or intentionally supported. Since ArrayList and other core data structures rely on this behavior working correctly, this should be explicitly documented as part of the public API contract.
Diffstat (limited to 'src/InternPool.zig')
0 files changed, 0 insertions, 0 deletions