Commit e7d02eae4d

Jakub Konka <kubkon@jakubkonka.com>
2020-07-02 20:54:57
Update lib/std/fs/test.zig
Co-authored-by: Joachim Schmidt <joachim.schmidt557@outlook.com>
1 parent b5badd1
Changed files (1)
lib
std
lib/std/fs/test.zig
@@ -30,7 +30,7 @@ test "Dir.Iterator" {
     while (try iter.next()) |entry| {
         // We cannot just store `entry` as on Windows, we're re-using the name buffer
         // which means we'll actually share the `name` pointer between entries!
-        const name = try mem.dupe(&arena.allocator, u8, entry.name);
+        const name = try arena.allocator.dupe(u8, entry.name);
         try entries.append(Dir.Entry{ .name = name, .kind = entry.kind });
     }