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 | da567348477e5de13f43dc5689e9ca34906c78f3 (patch) | |
tree | fda3d892da265dc49b648866ea38e473551654ce /patches | |
parent | 71dd4ff1ae20dc54637198f9fa87c0fc27b33f55 (diff) | |
download | ziglings-da567348477e5de13f43dc5689e9ca34906c78f3.tar.gz ziglings-da567348477e5de13f43dc5689e9ca34906c78f3.tar.bz2 ziglings-da567348477e5de13f43dc5689e9ca34906c78f3.tar.xz ziglings-da567348477e5de13f43dc5689e9ca34906c78f3.zip |
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 { |