commit e930456f629d14372d17e9a09c9f07ab232d715b
parent bcfd87bd0abaf17fa9f2842304fdbd2c74badbd7
Author: Drew DeVault <sir@cmpwn.com>
Date: Wed, 24 Feb 2021 11:43:58 -0500
fs: clarify that programmer should not call next again
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/fs/fs.ha b/fs/fs.ha
@@ -52,6 +52,7 @@ export fn subdir(fs: *fs, path: path) (*fs | error) = {
};
// Returns the next directory entry from an interator, or void if none remain.
+// It is a programming error to call this again after it has returned void.
//
// Use [stat_dup] if you need to keep the filestat around for longer than the
// next call to [next].