diff options
author | Dave Gauer <dave@ratfactor.com> | 2021-03-06 18:20:50 -0500 |
---|---|---|
committer | Dave Gauer <dave@ratfactor.com> | 2021-03-06 18:20:50 -0500 |
commit | d1c699389803f6ce485fb7de2bf8305260001c92 (patch) | |
tree | fda3d892da265dc49b648866ea38e473551654ce /patches | |
parent | 363459de84b70335b1bc175eb4eb312dd0684e86 (diff) |
add ex52 slices
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 { |