Nobody wants the long version of finding out if a variable is set.
So switched to the short version with 'orelse'. ;)
This commit is contained in:
parent
dfdaf03d99
commit
67f87a76c2
2 changed files with 7 additions and 10 deletions
|
|
@ -51,8 +51,6 @@ fn visitElephants(first_elephant: *Elephant) void {
|
|||
// We should stop once we encounter a tail that
|
||||
// does NOT point to another element. What can
|
||||
// we put here to make that happen?
|
||||
if (e.tail == null) ???;
|
||||
|
||||
e = e.tail.?;
|
||||
e = e.tail ???
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue