aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/build.zig
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-02-28 13:23:22 -0500
committerDave Gauer <dave@ratfactor.com>2021-02-28 13:23:22 -0500
commit5f7e9389d5a8d5829f9a7a7fe50153e3d82abf7f (patch)
treec8a5be6d30f4b44ea6124064fcf3e399876ab661 /build.zig
parent11ec69b92cccf542c6a632eddb4249102a82beab (diff)
Added ex 48, additional comment on 46
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig12
1 files changed, 10 insertions, 2 deletions
diff --git a/build.zig b/build.zig
index 0911881..17efa18 100644
--- a/build.zig
+++ b/build.zig
@@ -250,8 +250,16 @@ const exercises = [_]Exercise{
.output = "5 aliens. 4 aliens. 1 aliens. 0 aliens. Earth is saved!",
.hint = "Use the heat ray. And the method!",
},
- // use struct method for elephant tails
- // quiz: add elephant trunk (like tail)!
+ .{
+ .main_file = "48_methods2.zig",
+ .output = "Elephant A (U). Elephant B (U). Elephant C (U).",
+ .hint = "This just needs one little fix."
+ },
+ // 48 use struct method for elephant tails
+ // 49 quiz: add elephant trunk (like tail)!
+ // 50 null vs undefined
+ // 51 pass-by-value and const fn params
+ // 52 slices!
};
/// Check the zig version to make sure it can compile the examples properly.