mirror of
https://codeberg.org/ziglings/exercises.git
synced 2024-12-25 09:10:26 +00:00
Corrects the description of the new @typeInfo().@"struct".fields
This commit is contained in:
parent
b9cde40610
commit
26f4785a99
1 changed files with 2 additions and 2 deletions
|
@ -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 = ???;
|
||||
|
|
Loading…
Reference in a new issue