aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/build.zig
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-02-16 20:21:32 -0500
committerDave Gauer <dave@ratfactor.com>2021-02-16 20:21:32 -0500
commitf27601b55825fd8037082338ae996585946ef408 (patch)
treeee6c37ade9eec421628fc0d623d6fb1dcd0fd941 /build.zig
parentefdcfc70d48bbcbb8b3b4fda6b24610418ff8901 (diff)
Added ex. 46 optionals 2 - elephants!
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig6
1 files changed, 5 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index c85f978..f11df6f 100644
--- a/build.zig
+++ b/build.zig
@@ -240,7 +240,11 @@ const exercises = [_]Exercise{
.main_file = "45_optionals.zig",
.output = "The Ultimate Answer: 42.",
},
- // optional fields (elephant tail - no longer need circular)
+ .{
+ .main_file = "46_optionals2.zig",
+ .output = "Elephant A. Elephant B. Elephant C.",
+ .hint = "Elephants!",
+ },
// super-simple struct method
// use struct method for elephant tails
// quiz: add elephant trunk (like tail)!