authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2020-07-08 00:03:45+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2020-07-08 00:03:45+02:00
log417c92895263250ca399bcf7a1a2abaee6067624
tree597870975fdd32c53041670fbc0de103f9a098b8
parente7d02eae4d99fbae11e91ddd7601e5ac2a392292

Add comment about memory invalidation in Iterator.next on Win


1 files changed, 2 insertions(+), 0 deletions(-)

lib/std/fs.zig+2
......@@ -453,6 +453,8 @@ pub const Dir = struct {
453453
454454 pub const Error = IteratorError;
455455
456 /// Memory such as file names referenced in this returned entry becomes invalid
457 /// with subsequent calls to `next`, as well as when this `Dir` is deinitialized.
456458 pub fn next(self: *Self) Error!?Entry {
457459 start_over: while (true) {
458460 const w = os.windows;