summaryrefslogtreecommitdiffstatshomepage
path: root/exercises/043_pointers5.zig
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-04-04 16:23:27 -0400
committerDave Gauer <dave@ratfactor.com>2021-04-04 16:29:28 -0400
commitcc0101392124fca0944dc4447a049ab406aa8a94 (patch)
tree0faca74923dab4108541074695c5645d32104ca6 /exercises/043_pointers5.zig
parent8bb916d7debcace9f66cd290df78ab940663503b (diff)
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/043_pointers5.zig')
-rw-r--r--exercises/043_pointers5.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/043_pointers5.zig b/exercises/043_pointers5.zig
index cb94189..ae80ecc 100644
--- a/exercises/043_pointers5.zig
+++ b/exercises/043_pointers5.zig
@@ -73,7 +73,7 @@ fn printCharacter(c: *Character) void {
.warrior => "Warrior",
};
- std.debug.print("{s} (G:{} H:{} XP:{})", .{
+ std.debug.print("{s} (G:{} H:{} XP:{})\n", .{
class_name,
c.gold,
c.health,