diff options
Diffstat (limited to 'patches')
-rw-r--r-- | patches/patches/52_slices.patch | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/patches/patches/52_slices.patch b/patches/patches/52_slices.patch new file mode 100644 index 0000000..80f8d72 --- /dev/null +++ b/patches/patches/52_slices.patch @@ -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 { |