Reseted the simplification for de-referencing.

This commit is contained in:
Chris Boesch
2024-09-04 20:52:42 +02:00
parent 2e5b570aef
commit 7f1df86938
3 changed files with 4 additions and 4 deletions

View File

@@ -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