From bed01210e0fc2b3d84741c3a4731be73e1cec786 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Sun, 4 Apr 2021 16:23:27 -0400 Subject: 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. --- exercises/043_pointers5.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exercises/043_pointers5.zig') 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, -- cgit v1.2.3-ZIG