diff options
author | Dave Gauer <dave@ratfactor.com> | 2021-02-28 13:23:22 -0500 |
---|---|---|
committer | Dave Gauer <dave@ratfactor.com> | 2021-02-28 13:23:22 -0500 |
commit | b12afaa577e5f9b0c3bf922ec5c1ab15893c7378 (patch) | |
tree | c8a5be6d30f4b44ea6124064fcf3e399876ab661 /build.zig | |
parent | febc9dfecb5285cdaa9f4e9edb4d8331a1f1350c (diff) | |
download | ziglings-b12afaa577e5f9b0c3bf922ec5c1ab15893c7378.tar.gz ziglings-b12afaa577e5f9b0c3bf922ec5c1ab15893c7378.tar.bz2 ziglings-b12afaa577e5f9b0c3bf922ec5c1ab15893c7378.tar.xz ziglings-b12afaa577e5f9b0c3bf922ec5c1ab15893c7378.zip |
Added ex 48, additional comment on 46
Diffstat (limited to 'build.zig')
-rw-r--r-- | build.zig | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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. |