summaryrefslogtreecommitdiff
path: root/exercises/082_anonymous_structs3.zig
diff options
context:
space:
mode:
authorYevhen Babiichuk (DustDFG) <dfgdust@gmail.com>2025-03-13 20:49:41 +0200
committerYevhen Babiichuk (DustDFG) <dfgdust@gmail.com>2025-03-14 16:47:27 +0200
commit6f3cdcf0183efae4e3915e56a7257084ff8d0e4a (patch)
tree9c0eb6e20601a59909ed014f0deed117ab1673ef /exercises/082_anonymous_structs3.zig
parenteeb1246c2cf4f4c626a595c5652d5f4a96b84952 (diff)
Update type info for StructField type in 082
Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com>
Diffstat (limited to 'exercises/082_anonymous_structs3.zig')
-rw-r--r--exercises/082_anonymous_structs3.zig6
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)