zig/lib/std/mem
Ilia Choly e2f24a2d70 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.
2024-11-24 18:19:11 -05:00
..
Allocator.zig Allocator.free: document zero-length behavior 2024-11-24 18:19:11 -05:00