mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-08 15:59:59 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user