Skip to content

Commit 7aec3d9

Browse files
osiewiczgitbot
authored and
gitbot
committed
chore: Improve doc comments
1 parent 61582e5 commit 7aec3d9

File tree

1 file changed

+3
-2
lines changed
  • std/src/sys/pal/wasi

1 file changed

+3
-2
lines changed

std/src/sys/pal/wasi/fs.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub struct ReadDir {
3131
}
3232

3333
enum ReadDirState {
34-
/// Next DirEntry should be read from contents of buf at `offset`
34+
/// Fill `buf` with `buf.len()` bytes starting from `next_read_offset`.
3535
FillBuffer {
3636
next_read_offset: wasi::Dircookie,
3737
buf: Vec<u8>,
@@ -41,7 +41,8 @@ enum ReadDirState {
4141
next_read_offset: Option<wasi::Dircookie>,
4242
offset: usize,
4343
},
44-
/// Do not fetch any more entries, process all entries
44+
/// There is no more data to get in [`Self::FillBuffer`]; keep returning
45+
/// entries via ProcessEntry until `buf` is exhausted.
4546
RunUntilExhaustion {
4647
buf: Vec<u8>,
4748
offset: usize,

0 commit comments

Comments
 (0)