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

This commit is contained in:
Chris Boesch 2024-09-07 19:21:57 +02:00
parent b9cde40610
commit 26f4785a99
No known key found for this signature in database
GPG key ID: 8712DF4D3E364668

View file

@ -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 = ???;