Browse Source

Merge pull request #112 from nahuakang/ex047-reference

Edit comment to specify `for reference`
Dave Gauer 3 years ago
parent
commit
4ce16782d0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      exercises/047_methods.zig

+ 1 - 1
exercises/047_methods.zig

@@ -85,7 +85,7 @@ pub fn main() void {
     while (aliens_alive > 0) {
         aliens_alive = 0;
 
-        // Loop through every alien...
+        // Loop through every alien by reference (* makes a pointer capture value)
         for (aliens) |*alien| {
 
             // *** Zap the alien with the heat ray here! ***