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/037_structs.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exercises/037_structs.zig') 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, }); -- cgit v1.2.3-ZIG