ziglings/patches/patches/052_slices.patch
2021-06-14 11:52:22 -04:00

10 lines
246 B
Diff

35,36c35,36
< const hand1: []u8 = cards[???];
< const hand2: []u8 = cards[???];
---
> const hand1: []u8 = cards[0..4];
> const hand2: []u8 = cards[4..];
46c46
< fn printHand(hand: ???) void {
---
> fn printHand(hand: []u8) void {