ziglings/patches/patches/039_pointers.patch

11 lines
366 B
Diff

--- 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 });
}