Browse Source

patch because of a change in @typeInfo

Chris Boesch 2 years ago
parent
commit
f0d43f488f

+ 1 - 1
exercises/065_builtins2.zig

@@ -100,7 +100,7 @@ pub fn main() void {
     //
     //
     //     pub const StructField = struct {
     //     pub const StructField = struct {
     //         name: []const u8,
     //         name: []const u8,
-    //         field_type: type,
+    //         type: type,
     //         default_value: anytype,
     //         default_value: anytype,
     //         is_comptime: bool,
     //         is_comptime: bool,
     //         alignment: comptime_int,
     //         alignment: comptime_int,

+ 1 - 1
exercises/071_comptime6.zig

@@ -41,7 +41,7 @@ pub fn main() void {
     const fields = @typeInfo(Narcissus).Struct.fields;
     const fields = @typeInfo(Narcissus).Struct.fields;
 
 
     ??? {
     ??? {
-        if (field.field_type != void) {
+        if (field.type != void) {
             print(" {s}", .{field.name});
             print(" {s}", .{field.name});
         }
         }
     }
     }

+ 1 - 1
exercises/082_anonymous_structs3.zig

@@ -96,7 +96,7 @@ fn printTuple(tuple: anytype) void {
         //
         //
         //         pub const StructField = struct {
         //         pub const StructField = struct {
         //             name: []const u8,
         //             name: []const u8,
-        //             field_type: type,
+        //             type: type,
         //             default_value: anytype,
         //             default_value: anytype,
         //             is_comptime: bool,
         //             is_comptime: bool,
         //             alignment: comptime_int,
         //             alignment: comptime_int,