diff options
author | Dave Gauer <dave@ratfactor.com> | 2021-02-14 10:49:09 -0500 |
---|---|---|
committer | Dave Gauer <dave@ratfactor.com> | 2021-02-14 10:49:09 -0500 |
commit | acaf051e4cad70f17e48cd595f7908dfdb2914d6 (patch) | |
tree | bcac00066425034a1d22183690ee507c32328cbd /build.zig | |
parent | c9739f80008dafb6754cd9864abb725dbf8b89fb (diff) | |
download | ziglings-acaf051e4cad70f17e48cd595f7908dfdb2914d6.tar.gz ziglings-acaf051e4cad70f17e48cd595f7908dfdb2914d6.tar.bz2 ziglings-acaf051e4cad70f17e48cd595f7908dfdb2914d6.tar.xz ziglings-acaf051e4cad70f17e48cd595f7908dfdb2914d6.zip |
Added ex 45 optionals
(And secretly added the patches/ dir. Don't tell anybody!)
Diffstat (limited to 'build.zig')
-rw-r--r-- | build.zig | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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. |