mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-08 07:50:00 +00:00
Fixes the changes in zig's struct.fields
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user