Merge pull request #66 from Airbus5717/main

added newline print to make output look nicer
This commit is contained in:
Dave Gauer 2021-07-21 11:27:51 -04:00 committed by GitHub
commit a6a2810b09
2 changed files with 10 additions and 9 deletions

View file

@ -280,7 +280,7 @@ const exercises = [_]Exercise{
},
.{
.main_file = "052_slices.zig",
.output = "Hand1: A 4 K 8 Hand2: 5 2 Q J",
.output = "Hand1: A 4 K 8 \nHand2: 5 2 Q J",
},
.{
.main_file = "053_slices2.zig",

View file

@ -47,6 +47,7 @@ fn printHand(hand: ???) void {
for (hand) |h| {
std.debug.print("{u} ", .{h});
}
std.debug.print("\n", .{});
}
//
// Fun fact: Under the hood, slices are stored as a pointer to