You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dave Gauer 077a779f3d Change default elephant tail to null (#25)
It was confusing to see

    tail... = undefined

in the struct definition and then

    if (tail == null)

later in the exercise - it appears that the mismatch would be the issue
- but that's distracting from the real issue: making the value optional!

Changing the initial value to null is still correct, but won't distract.

The only worry now is that the user will remember the undefined
definition from the previous exercise and wonder if that has to be that
way...but you can't win them all!
4 years ago
..
01_hello.zig Apply `zig fmt` to exercises 4 years ago
02_std.zig Improved 02 comment about imports being const 4 years ago
03_assignment.zig Apply `zig fmt` to exercises 4 years ago
04_arrays.zig Apply `zig fmt` to exercises 4 years ago
05_arrays2.zig Moved exercises to exercises because exercises 4 years ago
06_strings.zig fix repeat target 4 years ago
07_strings2.zig Apply `zig fmt` to exercises 4 years ago
08_quiz.zig Added string specifier in format strings (#3) 4 years ago
09_if.zig Manually apply `zig fmt` style to comments 4 years ago
10_if2.zig Apply `zig fmt` to exercises 4 years ago
11_while.zig Apply `zig fmt` to exercises 4 years ago
12_while2.zig Replace unclosed opening paren with dash 4 years ago
13_while3.zig Apply `zig fmt` to exercises 4 years ago
14_while4.zig Apply `zig fmt` to exercises 4 years ago
15_for.zig Apply `zig fmt` to exercises 4 years ago
16_for2.zig Moved exercises to exercises because exercises 4 years ago
17_quiz2.zig Apply `zig fmt` to exercises 4 years ago
18_functions.zig Apply `zig fmt` to exercises 4 years ago
19_functions2.zig Apply `zig fmt` to exercises 4 years ago
20_quiz3.zig Apply `zig fmt` to exercises 4 years ago
21_errors.zig Apply `zig fmt` to exercises 4 years ago
22_errors2.zig Apply `zig fmt` to exercises 4 years ago
23_errors3.zig Apply `zig fmt` to exercises 4 years ago
24_errors4.zig Apply `zig fmt` to exercises 4 years ago
25_errors5.zig Apply `zig fmt` to exercises 4 years ago
26_hello2.zig Moved exercises to exercises because exercises 4 years ago
27_defer.zig Moved exercises to exercises because exercises 4 years ago
28_defer2.zig Apply `zig fmt` to exercises 4 years ago
29_errdefer.zig Apply `zig fmt` to exercises 4 years ago
30_switch.zig Apply `zig fmt` to exercises 4 years ago
31_switch2.zig Apply `zig fmt` to exercises 4 years ago
32_unreachable.zig Apply `zig fmt` to exercises 4 years ago
33_iferror.zig Apply `zig fmt` to exercises 4 years ago
34_quiz4.zig Apply `zig fmt` to exercises 4 years ago
35_enums.zig Apply `zig fmt` to exercises 4 years ago
36_enums2.zig Fixed a typo #26 4 years ago
37_structs.zig Fixed a typo #26 4 years ago
38_structs2.zig Apply `zig fmt` to exercises 4 years ago
39_pointers.zig Fixed spelling 4 years ago
40_pointers2.zig Apply `zig fmt` to exercises 4 years ago
41_pointers3.zig Apply `zig fmt` to exercises 4 years ago
42_pointers4.zig Apply `zig fmt` to exercises 4 years ago
43_pointers5.zig Apply `zig fmt` to exercises 4 years ago
44_quiz5.zig Added ex. 46 optionals 2 - elephants! 4 years ago
45_optionals.zig Apply `zig fmt` to exercises 4 years ago
46_optionals2.zig Change default elephant tail to null (#25) 4 years ago
47_methods.zig Add ex 47: methods 4 years ago