aboutsummaryrefslogtreecommitdiff
path: root/std/io.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-09-02 18:35:32 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-09-02 18:35:32 -0400
commit832caefc2a1b20deb513d43306d6723670ba9c8f (patch)
tree30401a79076971ead109ea05748e97049adcb71b /std/io.zig
parent4cd50865bffab670040f20b69da13d2f3e89f86f (diff)
downloadzig-832caefc2a1b20deb513d43306d6723670ba9c8f.tar.gz
zig-832caefc2a1b20deb513d43306d6723670ba9c8f.zip
fix regressions
Diffstat (limited to 'std/io.zig')
-rw-r--r--std/io.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/std/io.zig b/std/io.zig
index a1a77271e1..2b31bc0548 100644
--- a/std/io.zig
+++ b/std/io.zig
@@ -280,7 +280,7 @@ pub fn readFileAllocAligned(allocator: *mem.Allocator, path: []const u8, comptim
const buf = try allocator.alignedAlloc(u8, A, size);
errdefer allocator.free(buf);
- var adapter = FileInStream.init(&file);
+ var adapter = FileInStream.init(file);
try adapter.stream.readNoEof(buf[0..size]);
return buf;
}
@@ -592,7 +592,7 @@ pub const BufferedAtomicFile = struct {
self.atomic_file = try os.AtomicFile.init(allocator, dest_path, os.File.default_mode);
errdefer self.atomic_file.deinit();
- self.file_stream = FileOutStream.init(&self.atomic_file.file);
+ self.file_stream = FileOutStream.init(self.atomic_file.file);
self.buffered_stream = BufferedOutStream(FileOutStream.Error).init(&self.file_stream.stream);
return self;
}
@@ -622,7 +622,7 @@ test "import io tests" {
pub fn readLine(buf: []u8) !usize {
var stdin = getStdIn() catch return error.StdInUnavailable;
- var adapter = FileInStream.init(&stdin);
+ var adapter = FileInStream.init(stdin);
var stream = &adapter.stream;
var index: usize = 0;
while (true) {