commit 417c92895263250ca399bcf7a1a2abaee6067624 (tree) parent e7d02eae4d99fbae11e91ddd7601e5ac2a392292 Author: Jakub Konka <kubkon@jakubkonka.com> Date: Wed, 8 Jul 2020 00:03:45 +0200 Add comment about memory invalidation in Iterator.next on Win Diffstat:
| M | lib/std/fs.zig | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/std/fs.zig b/lib/std/fs.zig @@ -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;