Browse Source

Update ex 047 comment and patch

Dave Gauer 3 years ago
parent
commit
c3c610acf0
2 changed files with 4 additions and 4 deletions
  1. 1 1
      exercises/047_methods.zig
  2. 3 3
      patches/patches/047_methods.patch

+ 1 - 1
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.

+ 3 - 3
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);