Update ex 047 comment and patch

This commit is contained in:
Dave Gauer 2022-07-31 11:32:51 -04:00
parent 392a3ca9c6
commit c3c610acf0
2 changed files with 4 additions and 4 deletions

View file

@ -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.

View file

@ -1,4 +1,4 @@
87c87
< ???.zap(heat_ray_strength);
92c92
< ???.zap(???);
---
> alien.zap(heat_ray_strength);
> heat_ray.zap(alien);