1
0
Fork 0
mirror of https://github.com/ratfactor/ziglings synced 2024-05-05 01:56:03 +02:00

Update 042_pointers4.zig

https://github.com/ratfactor/ziglings/pull/122
This commit is contained in:
Chris Boesch 2023-01-12 19:25:06 +01:00 committed by GitHub
parent e4ad38a636
commit 87a652e05e
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

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