From e93261571265958a996b663d1cde4ebaa712d24e Mon Sep 17 00:00:00 2001 From: it3x Date: Mon, 29 Jun 2026 17:08:42 +0000 Subject: [PATCH 1/2] Remove prefilled solution See #478 --- exercises/109_files.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/109_files.zig b/exercises/109_files.zig index bf4de9b..5514c43 100644 --- a/exercises/109_files.zig +++ b/exercises/109_files.zig @@ -50,7 +50,7 @@ pub fn main(init: std.process.Init) !void { // wait a minute... // opening a directory might fail! // 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); // we try to open the file `zigling.txt`, From b39f223b8c464cddb473c0d9b3efcb22df10f9e0 Mon Sep 17 00:00:00 2001 From: it3x Date: Mon, 29 Jun 2026 17:14:05 +0000 Subject: [PATCH 2/2] Fix patch for 109_files --- patches/patches/109_files.patch | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/patches/patches/109_files.patch b/patches/patches/109_files.patch index ac59d70..c8ad47c 100644 --- a/patches/patches/109_files.patch +++ b/patches/patches/109_files.patch @@ -1,5 +1,5 @@ ---- exercises/109_files.zig 2026-03-20 19:23:48.874150121 +0100 -+++ answers/109_files.zig 2026-04-02 10:51:15.813831695 +0200 +--- exercises/109_files.zig 2026-06-29 17:08:04.124224900 +0000 ++++ answers/109_files.zig 2026-06-29 17:13:20.696220533 +0000 @@ -41,7 +41,7 @@ // by doing nothing // @@ -9,6 +9,15 @@ // if there's any other unexpected error we just propagate it through else => return e, }; +@@ -50,7 +50,7 @@ + // wait a minute... + // opening a directory might fail! + // what should we do here? +- var output_dir: std.Io.Dir = cwd.openDir(io, "output", .{}); ++ var output_dir: std.Io.Dir = try cwd.openDir(io, "output", .{}); + defer output_dir.close(io); + + // we try to open the file `zigling.txt`, @@ -61,7 +61,7 @@ // but here we are not yet done writing to the file // if only there were a keyword in Zig that