Add comment about memory invalidation in Iterator.next on Win
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user