summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2024-09-07 19:21:57 +0200
committerChris Boesch <chrboesch@noreply.codeberg.org>2024-09-07 19:21:57 +0200
commit26f4785a992493fb06505479cfb37e2c18b1c13e (patch)
tree58b97bd4000ad89479f0d4cd35624f95cc8f4a2f
parentb9cde40610e04ce0acacb4f3f26b145e9094dbb5 (diff)
Corrects the description of the new @typeInfo().@"struct".fields
-rw-r--r--exercises/082_anonymous_structs3.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/082_anonymous_structs3.zig b/exercises/082_anonymous_structs3.zig
index 6760ff3..573d0bb 100644
--- a/exercises/082_anonymous_structs3.zig
+++ b/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 = ???;