ziglings/patches/patches/052_slices.patch

11 lines
246 B
Diff
Raw Normal View History

2021-06-14 11:52:22 -04:00
35,36c35,36
2021-03-06 18:20:50 -05:00
< const hand1: []u8 = cards[???];
< const hand2: []u8 = cards[???];
---
> const hand1: []u8 = cards[0..4];
> const hand2: []u8 = cards[4..];
2021-06-14 11:52:22 -04:00
46c46
2021-03-06 18:20:50 -05:00
< fn printHand(hand: ???) void {
---
> fn printHand(hand: []u8) void {