Browse Source

Merge pull request 'Corrects the description of the new @typeInfo().@"struct".fields' (#157) from p_struct_typeinfo into main

Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/157
Chris Boesch 11 months ago
parent
commit
3dc79ca9c3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      exercises/082_anonymous_structs3.zig

+ 2 - 2
exercises/082_anonymous_structs3.zig

@@ -75,11 +75,11 @@ fn printTuple(tuple: anytype) void {
     //                   with fields specific to that type.
     //                   with fields specific to that type.
     //
     //
     //     The list of a struct type's fields can be found in
     //     The list of a struct type's fields can be found in
-    //     TypeInfo's Struct.fields.
+    //     TypeInfo's @"struct".fields.
     //
     //
     //     Example:
     //     Example:
     //
     //
-    //         @typeInfo(Circle).Struct.fields
+    //         @typeInfo(Circle).@"struct".fields
     //
     //
     // This will be an array of StructFields.
     // This will be an array of StructFields.
     const fields = ???;
     const fields = ???;