diff options
| author | Dave Gauer <[email protected]> | 2021-04-04 16:23:27 -0400 |
|---|---|---|
| committer | Dave Gauer <[email protected]> | 2021-04-04 16:29:28 -0400 |
| commit | cc0101392124fca0944dc4447a049ab406aa8a94 (patch) | |
| tree | 0faca74923dab4108541074695c5645d32104ca6 /exercises/037_structs.zig | |
| parent | 8bb916d7debcace9f66cd290df78ab940663503b (diff) | |
| download | ziglings-cc0101392124fca0944dc4447a049ab406aa8a94.tar.xz ziglings-cc0101392124fca0944dc4447a049ab406aa8a94.zip | |
Normalized exercise output, answers (#41)
1. All exercises should print a trailing \n
2. The build script should always show you _exactly_ what it's looking
for when you get it wrong. Therefore, .output should be set to the
exact expected output.
Diffstat (limited to 'exercises/037_structs.zig')
| -rw-r--r-- | exercises/037_structs.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/037_structs.zig b/exercises/037_structs.zig index 8082248..7571c05 100644 --- a/exercises/037_structs.zig +++ b/exercises/037_structs.zig @@ -52,7 +52,7 @@ pub fn main() void { // Ouch! Glorp takes a punch! glorp_the_wise.health -= 10; - std.debug.print("Your wizard has {} health and {} gold.", .{ + std.debug.print("Your wizard has {} health and {} gold.\n", .{ glorp_the_wise.health, glorp_the_wise.gold, }); |
