authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2020-07-02 20:54:57+02:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2020-07-02 20:54:57+02:00
loge7d02eae4d99fbae11e91ddd7601e5ac2a392292
treefa2027772456ddcc7469409c7a0639569c7716bb
parentb5badd112288b528d75085d82d5f7f1b109e87dc
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

Update lib/std/fs/test.zig

Co-authored-by: Joachim Schmidt <joachim.schmidt557@outlook.com>

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

lib/std/fs/test.zig+1-1
......@@ -30,7 +30,7 @@ test "Dir.Iterator" {
3030 while (try iter.next()) |entry| {
3131 // We cannot just store `entry` as on Windows, we're re-using the name buffer
3232 // which means we'll actually share the `name` pointer between entries!
33 const name = try mem.dupe(&arena.allocator, u8, entry.name);
33 const name = try arena.allocator.dupe(u8, entry.name);
3434 try entries.append(Dir.Entry{ .name = name, .kind = entry.kind });
3535 }
3636