mirror of
https://git.aramjonghu.dev/AramJonghu/ziglings.git
synced 2026-09-01 08:03:29 +02:00
Update 042_pointers4.zig
https://github.com/ratfactor/ziglings/pull/122
This commit is contained in:
committed by
GitHub
co-authored by
GitHub
parent
287669845a
commit
1891030f49
@@ -17,7 +17,7 @@ pub fn main() void {
|
||||
var num: u8 = 1;
|
||||
var more_nums = [_]u8{ 1, 1, 1, 1 };
|
||||
|
||||
// Let's pass a reference to num to our function and print it:
|
||||
// Let's pass the num reference to our function and print it:
|
||||
makeFive(&num);
|
||||
std.debug.print("num: {}, ", .{num});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user