From e32bd7ce30c8548884289483951395d4e7a4a0b7 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Tue, 16 Feb 2021 20:21:32 -0500 Subject: Added ex. 46 optionals 2 - elephants! --- build.zig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'build.zig') 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)! -- cgit v1.2.3-ZIG