diff options
| author | Chris Boesch <chrboesch@noreply.codeberg.org> | 2024-11-08 22:02:07 +0000 |
|---|---|---|
| committer | Chris Boesch <chrboesch@noreply.codeberg.org> | 2024-11-08 22:02:07 +0000 |
| commit | 63951df5230966b9ee20f6695d56557b73ccb45a (patch) | |
| tree | 51624332e8a379b3326d6c840cfdbfdb83c906e4 /exercises/046_optionals2.zig | |
| parent | ae541a0d9cb51fcd607a931c488b51333b6ea2b3 (diff) | |
| parent | 0d9458807e88235fcd3511fc044ed43833c0fa56 (diff) | |
Merge pull request 'Deleted unnecessary pointer.' (#185) from fix-176 into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/185
Diffstat (limited to 'exercises/046_optionals2.zig')
| -rw-r--r-- | exercises/046_optionals2.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/046_optionals2.zig b/exercises/046_optionals2.zig index a5436d9..b5fffbb 100644 --- a/exercises/046_optionals2.zig +++ b/exercises/046_optionals2.zig @@ -48,7 +48,7 @@ pub fn main() void { // If e1 and e2 are valid pointers to elephants, // this function links the elephants so that e1's tail "points" to e2. fn linkElephants(e1: ?*Elephant, e2: ?*Elephant) void { - e1.?.*.tail = e2.?; + e1.?.tail = e2.?; } // This function visits all elephants once, starting with the |
