diff options
| author | Luka Markušić <markusicluka@gmail.com> | 2026-06-01 15:37:05 +0200 |
|---|---|---|
| committer | Luka Markušić <markusicluka@gmail.com> | 2026-06-01 15:37:05 +0200 |
| commit | 63c798637cbb8b73ac0348933cc8dc42bfa9810a (patch) | |
| tree | 9b086a3ceb59ad32840b182282783176b4b89662 /patches | |
| parent | 4480762e83f9c9f56a397b743a3d5867e1abf499 (diff) | |
Fix 071_comptime6.zig because of new build system
Diffstat (limited to 'patches')
| -rw-r--r-- | patches/patches/071_comptime6.patch | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/patches/patches/071_comptime6.patch b/patches/patches/071_comptime6.patch index 98fb6e3..b5d2154 100644 --- a/patches/patches/071_comptime6.patch +++ b/patches/patches/071_comptime6.patch @@ -1,11 +1,11 @@ ---- exercises/071_comptime6.zig 2024-09-02 19:21:50.250454978 +0200 -+++ answers/071_comptime6.zig 2024-09-02 19:21:23.553250563 +0200 -@@ -40,7 +40,7 @@ - - const fields = @typeInfo(Narcissus).@"struct".fields; +--- exercises/071_comptime6.zig 2026-06-01 15:35:27.223400223 +0200 ++++ answers/071_comptime6.zig 2026-06-01 15:36:35.349728561 +0200 +@@ -41,7 +41,7 @@ + const field_names = @typeInfo(Narcissus).@"struct".field_names; + const field_types = @typeInfo(Narcissus).@"struct".field_types; - ??? { -+ inline for (fields) |field| { - if (field.type != void) { - print(" {s}", .{field.name}); ++ inline for (field_names, field_types) |field_name, field_type| { + if (field_type != void) { + print(" {s}", .{field_name}); } |
