hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit e8c38d4d4e740e788bbbdd08e2334b0643b5a6e3
parent 3628b8ab8ce153d7189a27f5d66860552e9a38b4
Author: Sebastian <sebastian@sebsite.pw>
Date:   Sun, 20 Mar 2022 00:31:10 -0400

io: clarify documentation for writeitems

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mio/util.ha | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/io/util.ha b/io/util.ha @@ -60,9 +60,9 @@ export fn writeitem(out: handle, item: *void, itemsz: size) (size | error) = { return i; }; -// Writes several "items", i.e. Hare objects, to an I/O handle. The return value -// is the number of items written. -export fn writeitems(out: handle, items: []void, itemsz: size) (size | error) = { +// Writes several "items", i.e. Hare objects, to an I/O handle. If successful, +// all items will be written. The return value is the number of items written. +export fn writeitems(in: handle, items: []void, itemsz: size) (size | error) = { let buf = items: *[*]u8; writeitem(out, buf, len(items) * itemsz)?; return len(items);