hare

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

commit 6d9e6bedacd0af928d990eedc9271c52ca916138
parent 323485441e972208ed130afaec3017e8bfcf3746
Author: Drew DeVault <sir@cmpwn.com>
Date:   Wed, 24 Feb 2021 12:58:49 -0500

fs::fs: iter may only return the file type bits

Diffstat:
Mfs/fs.ha | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/fs/fs.ha b/fs/fs.ha @@ -52,7 +52,9 @@ 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. +// It is a programming error to call this again after it has returned void. The +// file stat returned may only have the type bits set on the file mode; callers +// should call [fs::stat] to obtain the detailed file mode. // // Use [stat_dup] if you need to keep the filestat around for longer than the // next call to [next].