diff --git a/std/mem.zig b/std/mem.zig index 6b37dfe401..005d88791f 100644 --- a/std/mem.zig +++ b/std/mem.zig @@ -546,9 +546,7 @@ pub fn writeIntLE(comptime T: type, buf: *[@sizeOf(T)]u8, value: T) void { buf[0] = bits; return; } - // FIXME: this should just be for (buf). - // See https://github.com/ziglang/zig/issues/1663 - for (buf.*) |*b| { + for (buf) |*b| { b.* = @truncate(u8, bits); bits >>= 8; }