aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorDave Gauer <[email protected]>2021-02-14 10:49:09 -0500
committerDave Gauer <[email protected]>2021-02-14 10:49:09 -0500
commit545573fc84c2b8e3f281de7eb9bc52281536d5b3 (patch)
treebcac00066425034a1d22183690ee507c32328cbd /build.zig
parent16dbeea7f5e8c7327709052ed6e0a869f759f871 (diff)
downloadziglings-545573fc84c2b8e3f281de7eb9bc52281536d5b3.tar.xz
ziglings-545573fc84c2b8e3f281de7eb9bc52281536d5b3.zip
Added ex 45 optionals
(And secretly added the patches/ dir. Don't tell anybody!)
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index d7e09de..916f1a7 100644
--- a/build.zig
+++ b/build.zig
@@ -236,6 +236,14 @@ const exercises = [_]Exercise{
.output = "Elephant A. Elephant B. Elephant C.",
.hint = "Oh no! We forgot Elephant B!",
},
+ .{
+ .main_file = "45_optionals.zig",
+ .output = "The Ultimate Answer: 42.",
+ },
+ // optional fields (elephant tail - no longer need circular)
+ // super-simple struct method
+ // use struct method for elephant tails
+ // quiz: add elephant trunk (like tail)!
};
/// Check the zig version to make sure it can compile the examples properly.