Просмотр исходного кода

Corrects the description of the new @typeInfo().@"struct".fields

Chris Boesch 11 месяцев назад
Родитель
Сommit
26f4785a99
1 измененных файлов с 2 добавлено и 2 удалено
  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.
     //
     //     The list of a struct type's fields can be found in
-    //     TypeInfo's Struct.fields.
+    //     TypeInfo's @"struct".fields.
     //
     //     Example:
     //
-    //         @typeInfo(Circle).Struct.fields
+    //         @typeInfo(Circle).@"struct".fields
     //
     // This will be an array of StructFields.
     const fields = ???;