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/022_errors2.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exercises/022_errors2.zig') diff --git a/exercises/022_errors2.zig b/exercises/022_errors2.zig index 7bf00d4..1d513b3 100644 --- a/exercises/022_errors2.zig +++ b/exercises/022_errors2.zig @@ -25,5 +25,5 @@ pub fn main() void { // an error. Can you set the type correctly above? my_number = MyNumberError.TooSmall; - std.debug.print("I compiled!", .{}); + std.debug.print("I compiled!\n", .{}); } -- cgit v1.2.3-ZIG