Use new width format option

This commit is contained in:
hryx 2019-06-27 22:16:31 -07:00
parent 2060c7c39b
commit 646268875e
No known key found for this signature in database
GPG Key ID: 6A2784E15D7D95D6

View File

@ -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;
},
}
}