summaryrefslogtreecommitdiff
path: root/exercises/065_builtins2.zig
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2025-06-17 14:07:31 +0200
committerChris Boesch <chrboesch@noreply.codeberg.org>2025-06-17 14:07:31 +0200
commit451e1a373969f81fb63223e10b1d69ba7dac3523 (patch)
treea4873adda2b06d41685e35c2aa8e647655bfc900 /exercises/065_builtins2.zig
parent54b2b58b6a25bb3efe42014aa78b70282d84793d (diff)
Fixes the changes in zig's struct.fields
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