ziglings/patches/patches/004_arrays.patch
Dave Gauer 0956f1839f "999 is enough for anybody" triple-zero padding (#18)
When I hit 999 exercises, I will finally have reached the ultimate
state of soteriological release and no more exercises will be needed.
The cycle will be complete. All that will be left is perfect quietude,
freedom, and highest happiness.
2021-03-12 18:59:46 -05:00

12 lines
306 B
Diff

30c30
< const some_primes = [_]u8{ 1, 3, 5, 7, 11, 13, 17, 19 };
---
> var some_primes = [_]u8{ 1, 3, 5, 7, 11, 13, 17, 19 };
43c43
< const fourth = some_primes[???];
---
> const fourth = some_primes[3];
47c47
< const length = some_primes.???;
---
> const length = some_primes.len;