port to latest zig fs api
This commit is contained in:
parent
d7d4385242
commit
268be1074c
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue