Add comment about memory invalidation in Iterator.next on Win

This commit is contained in:
Jakub Konka 2020-07-08 00:03:45 +02:00
parent e7d02eae4d
commit 417c928952

View File

@ -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;