diff options
Diffstat (limited to 'patches/patches/071_comptime6.patch')
-rw-r--r-- | patches/patches/071_comptime6.patch | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/patches/patches/071_comptime6.patch b/patches/patches/071_comptime6.patch index 0c6b3ad..8731344 100644 --- a/patches/patches/071_comptime6.patch +++ b/patches/patches/071_comptime6.patch @@ -1,4 +1,11 @@ -43c43 -< ??? { ---- -> inline for (fields) |field| { +--- exercises/071_comptime6.zig 2023-10-03 22:15:22.125574535 +0200 ++++ answers/071_comptime6.zig 2023-10-05 20:04:07.162768879 +0200 +@@ -40,7 +40,7 @@ + + const fields = @typeInfo(Narcissus).Struct.fields; + +- ??? { ++ inline for (fields) |field| { + if (field.type != void) { + print(" {s}", .{field.name}); + } |