From da567348477e5de13f43dc5689e9ca34906c78f3 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Sat, 6 Mar 2021 18:20:50 -0500 Subject: add ex52 slices --- patches/patches/52_slices.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 patches/patches/52_slices.patch (limited to 'patches') 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 { -- cgit v1.2.3-ZIG