aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/patches/patches/039_pointers.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/patches/039_pointers.patch')
-rw-r--r--patches/patches/039_pointers.patch15
1 files changed, 11 insertions, 4 deletions
diff --git a/patches/patches/039_pointers.patch b/patches/patches/039_pointers.patch
index 57d67e5..7d75237 100644
--- a/patches/patches/039_pointers.patch
+++ b/patches/patches/039_pointers.patch
@@ -1,4 +1,11 @@
-33c33
-< num2 = ???;
----
-> num2 = num1_pointer.*;
+--- exercises/039_pointers.zig 2023-10-03 22:15:22.122241138 +0200
++++ answers/039_pointers.zig 2023-10-05 20:04:07.016099467 +0200
+@@ -30,7 +30,7 @@
+
+ // Please make num2 equal 5 using num1_pointer!
+ // (See the "cheatsheet" above for ideas.)
+- num2 = ???;
++ num2 = num1_pointer.*;
+
+ std.debug.print("num1: {}, num2: {}\n", .{ num1, num2 });
+ }