summaryrefslogtreecommitdiff
path: root/exercises/065_builtins2.zig
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/065_builtins2.zig')
-rw-r--r--exercises/065_builtins2.zig8
1 files changed, 6 insertions, 2 deletions
diff --git a/exercises/065_builtins2.zig b/exercises/065_builtins2.zig
index 6b8168c..067f07c 100644
--- a/exercises/065_builtins2.zig
+++ b/exercises/065_builtins2.zig
@@ -99,11 +99,15 @@ pub fn main() void {
// 'fields' is a slice of StructFields. Here's the declaration:
//
// 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,
+ //
+ // defaultValue() ?sf.type // Function that loads the
+ // // field's default value from
+ // // `default_value_ptr`
// };
//
// Please complete these 'if' statements so that the field