diff options
author | Dave Gauer <dave@ratfactor.com> | 2021-03-06 19:16:28 -0500 |
---|---|---|
committer | Dave Gauer <dave@ratfactor.com> | 2021-03-06 19:16:28 -0500 |
commit | 5f22bf5c249eb57b83ca15c4e8997a7c49b2bab7 (patch) | |
tree | d83b04fdd9668bddbac55321319b0d4727788f90 /patches | |
parent | da567348477e5de13f43dc5689e9ca34906c78f3 (diff) | |
download | ziglings-5f22bf5c249eb57b83ca15c4e8997a7c49b2bab7.tar.gz ziglings-5f22bf5c249eb57b83ca15c4e8997a7c49b2bab7.tar.bz2 ziglings-5f22bf5c249eb57b83ca15c4e8997a7c49b2bab7.tar.xz ziglings-5f22bf5c249eb57b83ca15c4e8997a7c49b2bab7.zip |
add ex53 slices2
Diffstat (limited to 'patches')
-rw-r--r-- | patches/patches/53_slices2.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/patches/patches/53_slices2.patch b/patches/patches/53_slices2.patch new file mode 100644 index 0000000..f5403a2 --- /dev/null +++ b/patches/patches/53_slices2.patch @@ -0,0 +1,20 @@ +20,22c20,22 +< const base1: []u8 = scrambled[15..23]; +< const base2: []u8 = scrambled[6..10]; +< const base3: []u8 = scrambled[32..]; +--- +> const base1: []const u8 = scrambled[15..23]; +> const base2: []const u8 = scrambled[6..10]; +> const base3: []const u8 = scrambled[32..]; +25,27c25,27 +< const justice1: []u8 = scrambled[11..14]; +< const justice2: []u8 = scrambled[0..5]; +< const justice3: []u8 = scrambled[24..31]; +--- +> const justice1: []const u8 = scrambled[11..14]; +> const justice2: []const u8 = scrambled[0..5]; +> const justice3: []const u8 = scrambled[24..31]; +33c33 +< fn printPhrase(part1: []u8, part2: []u8, part3: []u8) void { +--- +> fn printPhrase(part1: []const u8, part2: []const u8, part3: []const u8) void { |