port to latest zig fs api

This commit is contained in:
Luna 2022-04-27 20:01:06 -03:00
parent d7d4385242
commit 268be1074c
1 changed files with 2 additions and 2 deletions

View File

@ -89,9 +89,9 @@ pub fn doRepl(allocator: *std.mem.Allocator, args_it: anytype) !void {
file_read.close();
}
var file = try std.fs.cwd().openFile(scri_path, .{
.write = true,
var file = try std.fs.cwd().createFile(scri_path, .{
.read = false,
.truncate = true,
});
defer file.close();