Fix 076, add 077,078 sentinels and many-item pointers

This commit is contained in:
Dave Gauer 2021-05-08 18:51:08 -04:00
parent 71e43b0a50
commit 22ac3628a1
7 changed files with 126 additions and 35 deletions

View file

@ -1,8 +1,8 @@
82c82
83c83
< for (???) |s| {
---
> for (my_seq) |s| {
94c94
95c95
< while (??? != my_sentinel) {
---
> while (my_seq[i] != my_sentinel) {

View file

@ -0,0 +1,4 @@
63c63
< const printable = ???;
---
> const printable = foo.data[0..foo.length];

View file

@ -0,0 +1,4 @@
24c24
< const printable: [*:0]const u8 = ???;
---
> const printable: [*:0]const u8 = @ptrCast([*:0]const u8, data);