diff options
| author | Chris Boesch <chrboesch@noreply.codeberg.org> | 2026-02-27 19:43:31 +0100 |
|---|---|---|
| committer | Chris Boesch <chrboesch@noreply.codeberg.org> | 2026-02-27 19:43:31 +0100 |
| commit | 88510735e13f8c5cd7bbb2d08ba1cbfd407dca04 (patch) | |
| tree | 26b711143cd31e89d3a2489d2ac6ab562e899eea /exercises/082_anonymous_structs3.zig | |
| parent | 8c119bebdc66becac60e7ef035a993e422bd8972 (diff) | |
| parent | 07031c5daac4291e4d23599a944b84e6b434f9c2 (diff) | |
Merge branch 'main' into emphasize-for-loop-range
Diffstat (limited to 'exercises/082_anonymous_structs3.zig')
| -rw-r--r-- | exercises/082_anonymous_structs3.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/exercises/082_anonymous_structs3.zig b/exercises/082_anonymous_structs3.zig index 469cd66..c13774f 100644 --- a/exercises/082_anonymous_structs3.zig +++ b/exercises/082_anonymous_structs3.zig @@ -118,6 +118,10 @@ fn printTuple(tuple: anytype) void { // @field(foo, "x"); // returns the value at foo.x // // The first field should print as: "0"(bool):true + // + // Hint: Be careful! If your 'lhs' is a type, @field() looks + // for declarations. If it's a value, it looks for data. + // print("\"{s}\"({any}):{any} ", .{ field.???, field.???, |
