Revised exercises due to the changes of Zig version 0.11.0-dev.3853

This commit is contained in:
Chris Boesch 2023-06-26 23:43:39 +02:00
parent a57926bef2
commit a0a9920b78
11 changed files with 16 additions and 13 deletions

View file

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

View file

@ -1,4 +1,4 @@
66c66
67c67
< var avg: []f64 = ???;
---
> var avg: []f64 = try allocator.alloc(f64, arr.len);