mirror of
https://git.aramjonghu.dev/AramJonghu/ziglings.git
synced 2026-09-04 09:23:29 +02:00
pointers exercises done
This commit is contained in:
@@ -37,5 +37,5 @@ pub fn main() void {
|
||||
// This function should take a reference to a u8 value and set it
|
||||
// to 5.
|
||||
fn makeFive(x: *u8) void {
|
||||
??? = 5; // fix me!
|
||||
x.* = 5; // fix me!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user