Fix 076, add 077,078 sentinels and many-item pointers
This commit is contained in:
parent
71e43b0a50
commit
22ac3628a1
7 changed files with 126 additions and 35 deletions
|
|
@ -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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue