diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-02-08 02:08:45 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-02-08 02:08:45 -0500 |
| commit | 0d5ff6f4622a492dddbb1fc2b19b3157237500b1 (patch) | |
| tree | 4a707f626dc12adeeed3438b5966876c6b401ea0 /std/io.zig | |
| parent | 68238d5678a4c055bb6f1206254dcac2e0c634f0 (diff) | |
| download | zig-0d5ff6f4622a492dddbb1fc2b19b3157237500b1.tar.gz zig-0d5ff6f4622a492dddbb1fc2b19b3157237500b1.zip | |
error sets - most tests passing
Diffstat (limited to 'std/io.zig')
| -rw-r--r-- | std/io.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/std/io.zig b/std/io.zig index 842c30a0e4..9f16c5f496 100644 --- a/std/io.zig +++ b/std/io.zig @@ -694,13 +694,13 @@ pub const BufferOutStream = struct { pub fn init(buffer: &Buffer) BufferOutStream { return BufferOutStream { .buffer = buffer, - .stream = OutStream { + .stream = Stream { .writeFn = writeFn, }, }; } - fn writeFn(out_stream: &OutStream, bytes: []const u8) !void { + fn writeFn(out_stream: &Stream, bytes: []const u8) !void { const self = @fieldParentPtr(BufferOutStream, "stream", out_stream); return self.buffer.append(bytes); } |
