diff options
Diffstat (limited to 'patches')
| -rw-r--r-- | patches/patches/065_builtins2.patch | 4 | ||||
| -rw-r--r-- | patches/patches/082_anonymous_structs3.patch | 8 | ||||
| -rw-r--r-- | patches/patches/095_for3.patch | 15 |
3 files changed, 18 insertions, 9 deletions
diff --git a/patches/patches/065_builtins2.patch b/patches/patches/065_builtins2.patch index ad4192b..89fd652 100644 --- a/patches/patches/065_builtins2.patch +++ b/patches/patches/065_builtins2.patch @@ -1,5 +1,5 @@ ---- exercises/065_builtins2.zig 2025-06-17 13:58:07.857258167 +0200 -+++ answers/065_builtins2.zig 2025-06-17 13:56:36.630415938 +0200 +--- exercises/065_builtins2.zig 2026-02-27 13:10:36 ++++ answers/065_builtins2.zig 2026-02-27 13:10:52 @@ -58,7 +58,7 @@ // Oops! We cannot leave the 'me' and 'myself' fields // undefined. Please set them here: diff --git a/patches/patches/082_anonymous_structs3.patch b/patches/patches/082_anonymous_structs3.patch index 0f71a94..28a6728 100644 --- a/patches/patches/082_anonymous_structs3.patch +++ b/patches/patches/082_anonymous_structs3.patch @@ -1,5 +1,5 @@ ---- exercises/082_anonymous_structs3.zig 2025-03-14 16:41:17.892873287 +0200 -+++ answers/082_anonymous_structs3.zig 2025-03-14 16:40:56.043829543 +0200 +--- exercises/082_anonymous_structs3.zig 2026-02-27 13:05:46 ++++ answers/082_anonymous_structs3.zig 2026-02-27 13:07:22 @@ -82,14 +82,14 @@ // @typeInfo(Circle).@"struct".fields // @@ -17,9 +17,9 @@ // 3. Print the field's name, type, and value. // // Each 'field' in this loop is one of these: -@@ -119,9 +119,9 @@ +@@ -123,9 +123,9 @@ + // for declarations. If it's a value, it looks for data. // - // The first field should print as: "0"(bool):true print("\"{s}\"({any}):{any} ", .{ - field.???, - field.???, diff --git a/patches/patches/095_for3.patch b/patches/patches/095_for3.patch index ca9e3ad..a158b31 100644 --- a/patches/patches/095_for3.patch +++ b/patches/patches/095_for3.patch @@ -1,6 +1,6 @@ ---- exercises/095_for3.zig 2023-10-03 22:15:22.125574535 +0200 -+++ answers/095_for3.zig 2023-10-05 20:04:07.272770937 +0200 -@@ -54,7 +54,7 @@ +--- exercises/095_for3.zig 2026-02-27 19:33:59 ++++ answers/095_for3.zig 2026-02-27 19:33:38 +@@ -56,7 +56,7 @@ // I want to print every number between 1 and 20 that is NOT // divisible by 3 or 5. @@ -9,3 +9,12 @@ // The '%' symbol is the "modulo" operator and it // returns the remainder after division. +@@ -68,7 +68,7 @@ + std.debug.print("\n", .{}); + + // Let's also print every number from 1 through 15 +- for (???) |n| { ++ for (1..16) |n| { + std.debug.print("{} ", .{n}); + } + std.debug.print("\n", .{}); |
