diff options
Diffstat (limited to 'exercises/038_structs2.zig')
-rw-r--r-- | exercises/038_structs2.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/exercises/038_structs2.zig b/exercises/038_structs2.zig index 4f2ce48..82cfa4a 100644 --- a/exercises/038_structs2.zig +++ b/exercises/038_structs2.zig @@ -42,6 +42,12 @@ pub fn main() void { // // Feel free to run this program without adding Zump. What does // it do and why? + chars[1] = Character{ + .class = Class.bard, + .gold = 10, + .health = 100, + .experience = 20, + }; // Printing all RPG characters in a loop: for (chars) |c, num| { |