ziglings/exercises
Dave Gauer 88a6ae6d28 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!
2021-02-28 11:00:20 -05:00
..
01_hello.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
02_std.zig Improved 02 comment about imports being const 2021-02-10 09:27:43 -05:00
03_assignment.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
04_arrays.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
05_arrays2.zig Moved exercises to exercises because exercises 2021-02-09 18:36:57 -05:00
06_strings.zig fix repeat target 2021-02-16 23:36:33 +03:00
07_strings2.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
08_quiz.zig Added string specifier in format strings (#3) 2021-02-10 22:13:22 -05:00
09_if.zig Manually apply zig fmt style to comments 2021-02-15 16:55:19 -05:00
10_if2.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
11_while.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
12_while2.zig Replace unclosed opening paren with dash 2021-02-15 01:03:30 -05:00
13_while3.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
14_while4.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
15_for.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
16_for2.zig Moved exercises to exercises because exercises 2021-02-09 18:36:57 -05:00
17_quiz2.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
18_functions.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
19_functions2.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
20_quiz3.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
21_errors.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
22_errors2.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
23_errors3.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
24_errors4.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
25_errors5.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
26_hello2.zig Moved exercises to exercises because exercises 2021-02-09 18:36:57 -05:00
27_defer.zig Moved exercises to exercises because exercises 2021-02-09 18:36:57 -05:00
28_defer2.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
29_errdefer.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
30_switch.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
31_switch2.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
32_unreachable.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
33_iferror.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
34_quiz4.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
35_enums.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
36_enums2.zig Fixed a typo #26 2021-02-26 10:49:35 +05:30
37_structs.zig Fixed a typo #26 2021-02-26 10:48:49 +05:30
38_structs2.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
39_pointers.zig Fixed spelling 2021-02-16 18:26:43 +05:30
40_pointers2.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
41_pointers3.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
42_pointers4.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
43_pointers5.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
44_quiz5.zig Added ex. 46 optionals 2 - elephants! 2021-02-16 20:21:32 -05:00
45_optionals.zig Apply zig fmt to exercises 2021-02-15 16:55:44 -05:00
46_optionals2.zig Change default elephant tail to null (#25) 2021-02-28 11:00:20 -05:00
47_methods.zig Add ex 47: methods 2021-02-27 16:52:57 -05:00