Fixes the changes in zig's struct.fields

This commit is contained in:
Chris Boesch
2025-06-17 14:07:31 +02:00
parent 54b2b58b6a
commit 451e1a3739
2 changed files with 9 additions and 5 deletions

View File

@@ -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