| ... | ... | @@ -2032,7 +2032,7 @@ fn escapeChar(c: u8, char_buf: *[4]u8) []const u8 { |
| 2032 | 2032 | // Handle the remaining escapes Zig doesn't support by turning them |
| 2033 | 2033 | // into their respective hex representation |
| 2034 | 2034 | else => if (std.ascii.isCntrl(c)) |
| 2035 | | std.fmt.bufPrint(char_buf, "\\x{x:0<2}", .{c}) catch unreachable |
| 2035 | std.fmt.bufPrint(char_buf, "\\x{x:0>2}", .{c}) catch unreachable |
| 2036 | 2036 | else |
| 2037 | 2037 | std.fmt.bufPrint(char_buf, "{c}", .{c}) catch unreachable, |
| 2038 | 2038 | }; |