mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
I was just bitten by this footgun, where I actually wanted `sliceAsBytes` but unintentionally used `asBytes`, which in practice ignored all but the first element. Just add a comptime assertion to trigger a compile error in this case.
4726 lines
178 KiB
4726 lines
178 KiB