diff options
| author | Marc Tiehuis <marc@tiehu.is> | 2019-06-25 20:15:33 +1200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-25 20:15:33 +1200 |
| commit | f5af349bd6ab644139ecf4bc0b0761a13a5e6458 (patch) | |
| tree | 7f6d4efc8806ceee94511776ebf4d63c125c47e7 /src-self-hosted | |
| parent | de2b0cd722ca8fe98d16c86825db4cb2a70931c6 (diff) | |
| parent | 08e8d30dd642e42d8b8b16f43b487dbf42adb5ba (diff) | |
| download | zig-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.zig | 2 |
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]}); |
