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/024_errors4.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exercises/024_errors4.zig') diff --git a/exercises/024_errors4.zig b/exercises/024_errors4.zig index 7712f76..d45ab92 100644 --- a/exercises/024_errors4.zig +++ b/exercises/024_errors4.zig @@ -25,7 +25,7 @@ pub fn main() void { var b: u32 = makeJustRight(14) catch 0; var c: u32 = makeJustRight(4) catch 0; - std.debug.print("a={}, b={}, c={}", .{ a, b, c }); + std.debug.print("a={}, b={}, c={}\n", .{ a, b, c }); } // In this silly example we've split the responsibility of making -- cgit v1.2.3-ZIG