mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-11-09 19:40:48 -05:00
Merge pull request #190 from chrboesch/issue_126
removed unnecessary self pointer
This commit is contained in:
commit
8da0a6aa7d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue