diff options
Diffstat (limited to 'exercises/46_optionals2.zig')
-rw-r--r-- | exercises/46_optionals2.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/46_optionals2.zig b/exercises/46_optionals2.zig index 11f37aa..ffa5867 100644 --- a/exercises/46_optionals2.zig +++ b/exercises/46_optionals2.zig @@ -9,7 +9,7 @@ const std = @import("std"); // single quotes const Elephant = struct { letter: u8, - tail: *Elephant = undefined, // <---- make this optional! + tail: *Elephant = null, // <---- make this optional! visited: bool = false, }; |