summaryrefslogtreecommitdiff
path: root/exercises
diff options
context:
space:
mode:
Diffstat (limited to 'exercises')
-rw-r--r--exercises/046_optionals2.zig4
1 files changed, 1 insertions, 3 deletions
diff --git a/exercises/046_optionals2.zig b/exercises/046_optionals2.zig
index d3f65bb..e745d29 100644
--- a/exercises/046_optionals2.zig
+++ b/exercises/046_optionals2.zig
@@ -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 ???
}
}