diff options
| author | Chris Boesch <chrboesch@noreply.codeberg.org> | 2025-03-14 21:04:11 +0000 |
|---|---|---|
| committer | Chris Boesch <chrboesch@noreply.codeberg.org> | 2025-03-14 21:04:11 +0000 |
| commit | 02edb1f5c602ca6e22efc78627c40c428aeeadc6 (patch) | |
| tree | b79802d8d823fa96e5afc30e46d062db249b20c1 /exercises/082_anonymous_structs3.zig | |
| parent | 1a9b7ec3427dac2a802183a202b041fa6d41662e (diff) | |
| parent | 5734e68789863805e2bf02dc291d62c315a324ce (diff) | |
Merge branch 'main' into patch_rectify
Diffstat (limited to 'exercises/082_anonymous_structs3.zig')
| -rw-r--r-- | exercises/082_anonymous_structs3.zig | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/exercises/082_anonymous_structs3.zig b/exercises/082_anonymous_structs3.zig index 573d0bb..469cd66 100644 --- a/exercises/082_anonymous_structs3.zig +++ b/exercises/082_anonymous_structs3.zig @@ -95,13 +95,15 @@ fn printTuple(tuple: anytype) void { // Each 'field' in this loop is one of these: // // pub const StructField = struct { - // name: []const u8, + // name: [:0]const u8, // type: type, - // default_value: anytype, + // default_value_ptr: ?*const anyopaque, // is_comptime: bool, // alignment: comptime_int, // }; // + // Note we will learn about 'anyopaque' type later + // // You'll need this builtin: // // @field(lhs: anytype, comptime field_name: []const u8) |
