ziglings/patches/patches/052_slices.patch

11 lines
246 B
Diff
Raw Normal View History

2021-03-06 18:20:50 -05:00
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 {