authorgravatar for 38054771+cvoges12@users.noreply.github.comClayton Voges <38054771+cvoges12@users.noreply.github.com> 2020-10-15 23:19:19+00:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-10-15 19:30:21-04:00
log8c4031fd87c385ede55834130cb05a1ac04b07ac
tree27ead925229430f137793d512a080b6d0a0f8599
parentf3667e8a8056765c460aa3da1fd3ea655b54bf25

replaced inStream() with reader()

`inStream()` is now deprecated and deserves replacing.

1 files changed, 3 insertions(+), 3 deletions(-)

lib/std/child_process.zig+3-3
......@@ -210,8 +210,8 @@ pub const ChildProcess = struct {
210210
211211 try child.spawn();
212212
213 const stdout_in = child.stdout.?.inStream();
214 const stderr_in = child.stderr.?.inStream();
213 const stdout_in = child.stdout.?.reader();
214 const stderr_in = child.stderr.?.reader();
215215
216216 // TODO https://github.com/ziglang/zig/issues/6343
217217 const stdout = try stdout_in.readAllAlloc(args.allocator, args.max_output_bytes);
......@@ -843,7 +843,7 @@ fn readIntFd(fd: i32) !ErrInt {
843843 .capable_io_mode = .blocking,
844844 .intended_io_mode = .blocking,
845845 };
846 return @intCast(ErrInt, file.inStream().readIntNative(u64) catch return error.SystemResources);
846 return @intCast(ErrInt, file.reader().readIntNative(u64) catch return error.SystemResources);
847847}
848848
849849/// Caller must free result.