mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 14:03:10 -05:00
Merge pull request #66 from Airbus5717/main
added newline print to make output look nicer
This commit is contained in:
commit
a6a2810b09
2 changed files with 10 additions and 9 deletions
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue