commit 78bc6a70ba77525024063e41543e29e76b6d6761
parent 2a394fabb852de689d1af96396e8301576f95706
Author: Drew DeVault <sir@cmpwn.com>
Date: Sun, 21 Nov 2021 08:15:17 +0100
io::drain: accept io::handle
Signed-off-by: Drew DeVault <sir@cmpwn.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/io/drain.ha b/io/drain.ha
@@ -1,5 +1,5 @@
// Reads an entire stream into a []u8.
-export fn drain(in: *io::stream) ([]u8 | io::error) = {
+export fn drain(in: io::handle) ([]u8 | io::error) = {
let sink: []u8 = [];
static let buf: [4096]u8 = [0...];
for (true) {