mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-07-28 18:25:16 +00:00
@@ -50,7 +50,7 @@ pub fn main(init: std.process.Init) !void {
|
|||||||
// wait a minute...
|
// wait a minute...
|
||||||
// opening a directory might fail!
|
// opening a directory might fail!
|
||||||
// what should we do here?
|
// what should we do here?
|
||||||
var output_dir: std.Io.Dir = try cwd.openDir(io, "output", .{});
|
var output_dir: std.Io.Dir = cwd.openDir(io, "output", .{});
|
||||||
defer output_dir.close(io);
|
defer output_dir.close(io);
|
||||||
|
|
||||||
// we try to open the file `zigling.txt`,
|
// we try to open the file `zigling.txt`,
|
||||||
|
|||||||
Reference in New Issue
Block a user