add ex52 slices
This commit is contained in:
parent
71dd4ff1ae
commit
da56734847
3 changed files with 63 additions and 1 deletions
10
patches/patches/52_slices.patch
Normal file
10
patches/patches/52_slices.patch
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
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 {
|
||||
Loading…
Add table
Add a link
Reference in a new issue