mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 14:25:16 +00:00
Add comment about memory invalidation in Iterator.next on Win
This commit is contained in:
parent
e7d02eae4d
commit
417c928952
@ -453,6 +453,8 @@ pub const Dir = struct {
|
||||
|
||||
pub const Error = IteratorError;
|
||||
|
||||
/// Memory such as file names referenced in this returned entry becomes invalid
|
||||
/// with subsequent calls to `next`, as well as when this `Dir` is deinitialized.
|
||||
pub fn next(self: *Self) Error!?Entry {
|
||||
start_over: while (true) {
|
||||
const w = os.windows;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user