mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-11 17:39:58 +00:00
add ex52 slices
This commit is contained in:
10
patches/patches/52_slices.patch
Normal file
10
patches/patches/52_slices.patch
Normal file
@@ -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 {
|
||||
Reference in New Issue
Block a user