From acaf051e4cad70f17e48cd595f7908dfdb2914d6 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Sun, 14 Feb 2021 10:49:09 -0500 Subject: Added ex 45 optionals (And secretly added the patches/ dir. Don't tell anybody!) --- build.zig | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'build.zig') 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. -- cgit v1.2.3-ZIG