commit c817d2c5177339b02528fd67f9e5c8e6319905f1
parent 47f4d56ec3be3070011d73b60f1f22902ecdc452
Author: Drew DeVault <sir@cmpwn.com>
Date: Mon, 24 Jan 2022 15:04:55 +0100
io::drain: document return value ownership
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,4 +1,4 @@
-// Reads an entire stream into a []u8.
+// Reads an entire stream into a []u8. The caller must free the return value.
export fn drain(in: io::handle) ([]u8 | io::error) = {
let sink: []u8 = [];
static let buf: [4096]u8 = [0...];