047_methods.patch 437 B

1234567891011
  1. --- exercises/047_methods.zig 2023-10-03 22:15:22.122241138 +0200
  2. +++ answers/047_methods.zig 2023-10-05 20:04:07.056100214 +0200
  3. @@ -88,7 +88,7 @@
  4. for (&aliens) |*alien| {
  5. // *** Zap the alien with the heat ray here! ***
  6. - ???.zap(???);
  7. + heat_ray.zap(alien);
  8. // If the alien's health is still above 0, it's still alive.
  9. if (alien.health > 0) aliens_alive += 1;