aboutsummaryrefslogtreecommitdiff
path: root/src-self-hosted
diff options
context:
space:
mode:
authorMarc Tiehuis <marc@tiehu.is>2019-06-25 20:15:33 +1200
committerGitHub <noreply@github.com>2019-06-25 20:15:33 +1200
commitf5af349bd6ab644139ecf4bc0b0761a13a5e6458 (patch)
tree7f6d4efc8806ceee94511776ebf4d63c125c47e7 /src-self-hosted
parentde2b0cd722ca8fe98d16c86825db4cb2a70931c6 (diff)
parent08e8d30dd642e42d8b8b16f43b487dbf42adb5ba (diff)
downloadzig-f5af349bd6ab644139ecf4bc0b0761a13a5e6458.tar.gz
zig-f5af349bd6ab644139ecf4bc0b0761a13a5e6458.zip
Merge pull request #2714 from ziglang/fmt-overhaul
Add positional, precision and width support to std.fmt
Diffstat (limited to 'src-self-hosted')
-rw-r--r--src-self-hosted/dep_tokenizer.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-self-hosted/dep_tokenizer.zig b/src-self-hosted/dep_tokenizer.zig
index 2721944451..f802765bc0 100644
--- a/src-self-hosted/dep_tokenizer.zig
+++ b/src-self-hosted/dep_tokenizer.zig
@@ -998,7 +998,7 @@ fn printCharValues(out: var, bytes: []const u8) !void {
fn printUnderstandableChar(out: var, char: u8) !void {
if (!std.ascii.isPrint(char) or char == ' ') {
- std.fmt.format(out.context, anyerror, out.output, "\\x{X2}", char) catch {};
+ std.fmt.format(out.context, anyerror, out.output, "\\x{X:2}", char) catch {};
} else {
try out.write("'");
try out.write([_]u8{printable_char_tab[char]});