fix comment field_types is a slice of (strings -> types)

This commit is contained in:
omihirofumi
2026-06-25 12:23:02 +09:00
parent 529b294cc3
commit f6514ebb13
+1 -1
View File
@@ -94,7 +94,7 @@ pub fn main() void {
print("He has room in his heart for:", .{});
// `field_names` is a slice of strings and it holds the names of the struct's fields
// `field_types` is a slice of strings and it holds the types of the struct's fields,
// `field_types` is a slice of types and it holds the types of the struct's fields,
// it is guaranteed to be the same length as `field_names`
const field_names = @typeInfo(Narcissus).@"struct".field_names;
const field_types = @typeInfo(Narcissus).@"struct".field_types;