mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-08 07:50:00 +00:00
Fix 076, add 077,078 sentinels and many-item pointers
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
82c82
|
||||
83c83
|
||||
< for (???) |s| {
|
||||
---
|
||||
> for (my_seq) |s| {
|
||||
94c94
|
||||
95c95
|
||||
< while (??? != my_sentinel) {
|
||||
---
|
||||
> while (my_seq[i] != my_sentinel) {
|
||||
|
||||
4
patches/patches/077_sentinels2.patch
Normal file
4
patches/patches/077_sentinels2.patch
Normal file
@@ -0,0 +1,4 @@
|
||||
63c63
|
||||
< const printable = ???;
|
||||
---
|
||||
> const printable = foo.data[0..foo.length];
|
||||
4
patches/patches/078_sentinels3.patch
Normal file
4
patches/patches/078_sentinels3.patch
Normal file
@@ -0,0 +1,4 @@
|
||||
24c24
|
||||
< const printable: [*:0]const u8 = ???;
|
||||
---
|
||||
> const printable: [*:0]const u8 = @ptrCast([*:0]const u8, data);
|
||||
Reference in New Issue
Block a user