commit 6f31c96a2c7502616e8c41e69f23e98528e4015e
parent 7cea2dba5ea08598017dc8cecd6178ad6733e112
Author: Sebastian <sebastian@sebsite.pw>
Date: Sat, 20 Apr 2024 22:21:24 -0400
fs: update documentation to use done
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/fs.ha b/fs/fs.ha
@@ -360,7 +360,7 @@ export fn symlink(fs: *fs, target: str, path: str) (void | error) = {
};
};
-// Returns the next directory entry from an iterator, or void if none remain.
+// Returns the next directory entry from an iterator, or done if none remain.
// '.' and '..' are skipped. It is a programming error to call this again after
// it has returned void. Calling this again after an error is safe. The list is
// not guaranteed to be complete when an error has been returned. The file stat
diff --git a/fs/types.ha b/fs/types.ha
@@ -339,7 +339,7 @@ export type finishfunc = fn(iter: *iterator) void;
// subtype this struct to store any necessary state and populate the pointers
// with your implementation.
export type iterator = struct {
- // Returns the next member of the directory, or void if there are none
+ // Returns the next member of the directory, or done if there are none
// remaining.
next: *nextfunc,
// Frees resources associated with the iterator.