0.15.1 Changes

This works though

pub fn main() !void {
    var buf: [10]u8 = undefined;
    buf[0] = 'B';

    std.debug.print("{{", .{});
    for (buf) |c| {
        std.debug.print("{x:>3}", .{c});
    }
    std.debug.print(" }}", .{});
}

Honestly I found it strange that it worked before the way you wrote it, since slices required any formatter like

    std.debug.print("{any:0>2}", .{&buf});

which still works. Anyway I still think there’s something funny going on with this kind of errors.

1 Like