From cc0101392124fca0944dc4447a049ab406aa8a94 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/023_errors3.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exercises/023_errors3.zig') diff --git a/exercises/023_errors3.zig b/exercises/023_errors3.zig index a465737..81dd733 100644 --- a/exercises/023_errors3.zig +++ b/exercises/023_errors3.zig @@ -14,7 +14,7 @@ pub fn main() void { var a: u32 = addTwenty(44) catch 22; var b: u32 = addTwenty(4) ??? 22; - std.debug.print("a={}, b={}", .{ a, b }); + std.debug.print("a={}, b={}\n", .{ a, b }); } // Please provide the return type from this function. -- cgit v1.2.3-70-g09d2