aboutsummaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorChris Boesch <[email protected]>2023-06-26 23:43:39 +0200
committerChris Boesch <[email protected]>2023-06-26 23:43:39 +0200
commita5a36337e88a15befbb814cdd14a4801e44f6673 (patch)
tree026ae50af63d732bb862f8a5b92dbce86af405ea /patches
parentc3aed336e70392e33dfebf32489f803bf6736ab9 (diff)
downloadziglings-a5a36337e88a15befbb814cdd14a4801e44f6673.tar.xz
ziglings-a5a36337e88a15befbb814cdd14a4801e44f6673.zip
Revised exercises due to the changes of Zig version 0.11.0-dev.3853
Diffstat (limited to 'patches')
-rw-r--r--patches/patches/078_sentinels3.patch2
-rw-r--r--patches/patches/096_memory_allocation.patch2
2 files changed, 2 insertions, 2 deletions
diff --git a/patches/patches/078_sentinels3.patch b/patches/patches/078_sentinels3.patch
index 94257b0..31185d6 100644
--- a/patches/patches/078_sentinels3.patch
+++ b/patches/patches/078_sentinels3.patch
@@ -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);
diff --git a/patches/patches/096_memory_allocation.patch b/patches/patches/096_memory_allocation.patch
index fd990b0..a3db349 100644
--- a/patches/patches/096_memory_allocation.patch
+++ b/patches/patches/096_memory_allocation.patch
@@ -1,4 +1,4 @@
-66c66
+67c67
< var avg: []f64 = ???;
---
> var avg: []f64 = try allocator.alloc(f64, arr.len);