mirror of
https://github.com/ziglang/zig.git
synced 2025-12-31 02:23:22 +00:00
fix regression in docgen
I used the wrong function here
This commit is contained in:
parent
877f39d227
commit
eddca50059
@ -34,10 +34,10 @@ pub fn main() !void {
|
||||
const out_file_name = try (args_it.next(allocator) orelse @panic("expected output arg"));
|
||||
defer allocator.free(out_file_name);
|
||||
|
||||
var in_file = try fs.cwd().openFile(in_file_name, .{.read = true});
|
||||
var in_file = try fs.cwd().openFile(in_file_name, .{ .read = true });
|
||||
defer in_file.close();
|
||||
|
||||
var out_file = try fs.cwd().openFile(out_file_name, .{.write = true});
|
||||
var out_file = try fs.cwd().createFile(out_file_name, .{});
|
||||
defer out_file.close();
|
||||
|
||||
var file_in_stream = in_file.inStream();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user