mirror of
https://git.aramjonghu.dev/AramJonghu/ziglings.git
synced 2026-09-01 08:03:29 +02:00
Merge pull request #190 from chrboesch/issue_126
removed unnecessary self pointer
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user