chore: update to latest zig nightly

This commit is contained in:
2022-10-21 05:12:11 -03:00
parent c37546d273
commit 011d2f2f2a
3 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ buf: []u8,
alloc: Allocator,
pub fn init(alloc: Allocator, path: []const u8) !Self {
const file = try std.fs.cwd().openFile(path, .{ .read = true });
const file = try std.fs.cwd().openFile(path, .{});
defer file.close();
const len = try file.getEndPos();

View File

@@ -7,7 +7,7 @@ buf: []u8,
alloc: Allocator,
pub fn init(alloc: Allocator, path: []const u8) !Self {
const file = try std.fs.cwd().openFile(path, .{ .read = true });
const file = try std.fs.cwd().openFile(path, .{});
defer file.close();
const len = try file.getEndPos();