aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2022-07-31 11:32:51 -0400
committerDave Gauer <dave@ratfactor.com>2022-07-31 11:32:51 -0400
commitae78706f45b618a71fea2d73130b0aadb8bbd910 (patch)
treede833279e471d1136fb7e0cc987df3eaf8e8af89
parentcf0fa9b9a0bdca658cc15624903fae884cefe947 (diff)
downloadziglings-ae78706f45b618a71fea2d73130b0aadb8bbd910.tar.gz
ziglings-ae78706f45b618a71fea2d73130b0aadb8bbd910.tar.bz2
ziglings-ae78706f45b618a71fea2d73130b0aadb8bbd910.tar.xz
ziglings-ae78706f45b618a71fea2d73130b0aadb8bbd910.zip
Update ex 047 comment and patch
-rw-r--r--exercises/047_methods.zig2
-rw-r--r--patches/patches/047_methods.patch6
2 files changed, 4 insertions, 4 deletions
diff --git a/exercises/047_methods.zig b/exercises/047_methods.zig
index a6367e9..048cfa0 100644
--- a/exercises/047_methods.zig
+++ b/exercises/047_methods.zig
@@ -88,7 +88,7 @@ pub fn main() void {
// Loop through every alien...
for (aliens) |*alien| {
- // *** Zap the Alien Here! ***
+ // *** Zap the alien with the heat ray here! ***
???.zap(???);
// If the alien's health is still above 0, it's still alive.
diff --git a/patches/patches/047_methods.patch b/patches/patches/047_methods.patch
index 81e733b..edd9db1 100644
--- a/patches/patches/047_methods.patch
+++ b/patches/patches/047_methods.patch
@@ -1,4 +1,4 @@
-87c87
-< ???.zap(heat_ray_strength);
+92c92
+< ???.zap(???);
---
-> alien.zap(heat_ray_strength);
+> heat_ray.zap(alien);