diff options
| author | r00ster <r00ster91@protonmail.com> | 2021-12-29 21:11:12 +0100 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-01-01 10:29:36 +0200 |
| commit | b100e2ec2a06268623b119baf584e059440cb8f0 (patch) | |
| tree | 861850048e7905316fee431b7a8afbdc26787c78 /lib/std | |
| parent | 55709de185d973d9866aa761372817e0c3e8774d (diff) | |
| download | zig-b100e2ec2a06268623b119baf584e059440cb8f0.tar.gz zig-b100e2ec2a06268623b119baf584e059440cb8f0.zip | |
std.fmt: improve `@compileError` message
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/fmt.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/fmt.zig b/lib/std/fmt.zig index 1ddacf5844..53311c7a3f 100644 --- a/lib/std/fmt.zig +++ b/lib/std/fmt.zig @@ -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) { |
