diff options
author | Dave Gauer <dave@ratfactor.com> | 2021-02-27 16:52:57 -0500 |
---|---|---|
committer | Dave Gauer <dave@ratfactor.com> | 2021-02-27 16:52:57 -0500 |
commit | 7b165e88581efff98457c02d73c53e7481f2f3f0 (patch) | |
tree | 6bb70a54e8099fa98fa787a27ba844a8c477c1f9 /build.zig | |
parent | 96a5872c499c324f4855aec262c433fdbd60a4a2 (diff) | |
download | ziglings-7b165e88581efff98457c02d73c53e7481f2f3f0.tar.gz ziglings-7b165e88581efff98457c02d73c53e7481f2f3f0.tar.bz2 ziglings-7b165e88581efff98457c02d73c53e7481f2f3f0.tar.xz ziglings-7b165e88581efff98457c02d73c53e7481f2f3f0.zip |
Add ex 47: methods
Diffstat (limited to 'build.zig')
-rw-r--r-- | build.zig | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -40,7 +40,7 @@ const exercises = [_]Exercise{ .{ .main_file = "01_hello.zig", .output = "Hello world", - .hint = "Note the error: the source file has a hint for fixing 'main'.", + .hint = "DON'T PANIC!\nRead the error above.\nSee how it has something to do with 'main'?\nOpen up the source file as noted and read the comments.\nYou can do this!", }, .{ .main_file = "02_std.zig", @@ -243,9 +243,13 @@ const exercises = [_]Exercise{ .{ .main_file = "46_optionals2.zig", .output = "Elephant A. Elephant B. Elephant C.", - .hint = "Elephants!", + .hint = "Elephants again!", + }, + .{ + .main_file = "47_methods.zig", + .output = "5 aliens. 4 aliens. 1 aliens. 0 aliens. Earth is saved!", + .hint = "Use the heat ray. And the method!", }, - // super-simple struct method // use struct method for elephant tails // quiz: add elephant trunk (like tail)! }; |