mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-07-28 18:25:16 +00:00
fix comment field_types is a slice of (strings -> types)
This commit is contained in:
@@ -94,7 +94,7 @@ pub fn main() void {
|
|||||||
print("He has room in his heart for:", .{});
|
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_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`
|
// it is guaranteed to be the same length as `field_names`
|
||||||
const field_names = @typeInfo(Narcissus).@"struct".field_names;
|
const field_names = @typeInfo(Narcissus).@"struct".field_names;
|
||||||
const field_types = @typeInfo(Narcissus).@"struct".field_types;
|
const field_types = @typeInfo(Narcissus).@"struct".field_types;
|
||||||
|
|||||||
Reference in New Issue
Block a user