mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 13:30:45 +00:00
std.fmt: improve @compileError message
This commit is contained in:
parent
55709de185
commit
b100e2ec2a
@ -673,7 +673,7 @@ pub fn formatIntValue(
|
||||
if (@typeInfo(@TypeOf(int_value)).Int.bits <= 8) {
|
||||
return formatAsciiChar(@as(u8, int_value), options, writer);
|
||||
} else {
|
||||
@compileError("Cannot print integer that is larger than 8 bits as a ascii");
|
||||
@compileError("Cannot print integer that is larger than 8 bits as an ASCII character");
|
||||
}
|
||||
} else if (comptime std.mem.eql(u8, fmt, "u")) {
|
||||
if (@typeInfo(@TypeOf(int_value)).Int.bits <= 21) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user