diff --git a/exercises/065_builtins2.zig b/exercises/065_builtins2.zig index a0f9160..7d3e770 100644 --- a/exercises/065_builtins2.zig +++ b/exercises/065_builtins2.zig @@ -100,7 +100,7 @@ pub fn main() void { // // pub const StructField = struct { // name: []const u8, - // field_type: type, + // type: type, // default_value: anytype, // is_comptime: bool, // alignment: comptime_int, diff --git a/exercises/071_comptime6.zig b/exercises/071_comptime6.zig index f764590..7723291 100644 --- a/exercises/071_comptime6.zig +++ b/exercises/071_comptime6.zig @@ -41,7 +41,7 @@ pub fn main() void { const fields = @typeInfo(Narcissus).Struct.fields; ??? { - if (field.field_type != void) { + if (field.type != void) { print(" {s}", .{field.name}); } } diff --git a/exercises/082_anonymous_structs3.zig b/exercises/082_anonymous_structs3.zig index e5c6839..6760ff3 100644 --- a/exercises/082_anonymous_structs3.zig +++ b/exercises/082_anonymous_structs3.zig @@ -96,7 +96,7 @@ fn printTuple(tuple: anytype) void { // // pub const StructField = struct { // name: []const u8, - // field_type: type, + // type: type, // default_value: anytype, // is_comptime: bool, // alignment: comptime_int,