ziglings/patches/patches/52_slices.patch
2021-03-06 18:20:50 -05:00

10 lines
246 B
Diff

34,35c34,35
< const hand1: []u8 = cards[???];
< const hand2: []u8 = cards[???];
---
> const hand1: []u8 = cards[0..4];
> const hand2: []u8 = cards[4..];
45c45
< fn printHand(hand: ???) void {
---
> fn printHand(hand: []u8) void {