diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-02-09 13:49:58 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-02-09 13:49:58 -0500 |
| commit | e7bf8f3f04efc280a76a3a38b4e6d470d279e41a (patch) | |
| tree | 2e2398667f04fa46d5de7ae4e686fe1088bf264b /std/io.zig | |
| parent | 1fb308ceeea0259ad021d67945ea5adc10960a85 (diff) | |
| download | zig-e7bf8f3f04efc280a76a3a38b4e6d470d279e41a.tar.gz zig-e7bf8f3f04efc280a76a3a38b4e6d470d279e41a.zip | |
fix compiler crash switching on global error with no else
Diffstat (limited to 'std/io.zig')
| -rw-r--r-- | std/io.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/io.zig b/std/io.zig index dbaf39ea16..504dcdef80 100644 --- a/std/io.zig +++ b/std/io.zig @@ -499,7 +499,7 @@ pub fn OutStream(comptime Error: type) type { writeFn: fn(self: &Self, bytes: []const u8) Error!void, pub fn print(self: &Self, comptime format: []const u8, args: ...) !void { - return std.fmt.format(self, error, self.writeFn, format, args); + return std.fmt.format(self, Error, self.writeFn, format, args); } pub fn write(self: &Self, bytes: []const u8) !void { |
