aboutsummaryrefslogtreecommitdiff
path: root/exercises/024_errors4.zig
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-04-04 16:23:27 -0400
committerDave Gauer <dave@ratfactor.com>2021-04-04 16:29:28 -0400
commitbed01210e0fc2b3d84741c3a4731be73e1cec786 (patch)
tree0faca74923dab4108541074695c5645d32104ca6 /exercises/024_errors4.zig
parenta7e4c043999eb120f0b6be5a4e01793a02f1e676 (diff)
downloadziglings-bed01210e0fc2b3d84741c3a4731be73e1cec786.tar.gz
ziglings-bed01210e0fc2b3d84741c3a4731be73e1cec786.tar.bz2
ziglings-bed01210e0fc2b3d84741c3a4731be73e1cec786.tar.xz
ziglings-bed01210e0fc2b3d84741c3a4731be73e1cec786.zip
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.
Diffstat (limited to 'exercises/024_errors4.zig')
-rw-r--r--exercises/024_errors4.zig2
1 files changed, 1 insertions, 1 deletions
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