mirror of
https://github.com/ziglang/zig.git
synced 2025-12-12 17:23:09 +00:00
sync
This commit is contained in:
parent
dd4eb86bc1
commit
f23b15b4d5
2
lib/compiler/aro/aro/Diagnostics.zig
vendored
2
lib/compiler/aro/aro/Diagnostics.zig
vendored
@ -443,7 +443,7 @@ pub fn renderMessage(comp: *Compilation, m: anytype, msg: Message) void {
|
|||||||
printRt(m, prop.msg, .{"{s}"}, .{&str});
|
printRt(m, prop.msg, .{"{s}"}, .{&str});
|
||||||
} else {
|
} else {
|
||||||
var buf: [3]u8 = undefined;
|
var buf: [3]u8 = undefined;
|
||||||
const str = std.fmt.bufPrint(&buf, "x{x}", .{std.fmt.fmtSliceHexLower(&.{msg.extra.invalid_escape.char})}) catch unreachable;
|
const str = std.fmt.bufPrint(&buf, "x{x}", .{msg.extra.invalid_escape.char}) catch unreachable;
|
||||||
printRt(m, prop.msg, .{"{s}"}, .{str});
|
printRt(m, prop.msg, .{"{s}"}, .{str});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user