From b409387dc85d8a980ea3f1a5920891052ad1af6b Mon Sep 17 00:00:00 2001 From: Chris Boesch Date: Mon, 20 Feb 2023 21:32:10 +0100 Subject: [PATCH] removed unnecessary self pointer --- exercises/047_methods.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/047_methods.zig b/exercises/047_methods.zig index 0e7bfa8..a99c004 100644 --- a/exercises/047_methods.zig +++ b/exercises/047_methods.zig @@ -62,7 +62,7 @@ const HeatRay = struct { damage: u8, // We love this method: - pub fn zap(self: *HeatRay, alien: *Alien) void { + pub fn zap(self: HeatRay, alien: *Alien) void { alien.health -= if (self.damage >= alien.health) alien.health else self.damage; } };