mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-07-28 10:15:14 +00:00
Merge pull request 'fix typo: field_types is a slice of strings -> field_types is a slice of types' (#473) from omihirofumi/exercises:main into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/473
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user