From c3c610acf07298eec313ebf1923defdac7b3de67 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Sun, 31 Jul 2022 11:32:51 -0400 Subject: [PATCH] Update ex 047 comment and patch --- exercises/047_methods.zig | 2 +- patches/patches/047_methods.patch | 6 +++--- 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);