mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 05:48:31 +00:00
Use new width format option
This commit is contained in:
parent
2060c7c39b
commit
646268875e
@ -740,7 +740,7 @@ fn escapeChar(c: u8) []const u8 {
|
||||
'\t' => return "\\t"[0..],
|
||||
else => {
|
||||
var buf: [4]u8 = undefined;
|
||||
return std.fmt.bufPrint(buf[0..], "\\x{x2}", c) catch unreachable;
|
||||
return std.fmt.bufPrint(buf[0..], "\\x{x:2}", c) catch unreachable;
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user