Browse Source

Edit comment above a for loop by reference line

Nahua Kang 3 years ago
parent
commit
27fde06d56
1 changed files with 1 additions and 1 deletions
  1. 1 1
      exercises/047_methods.zig

+ 1 - 1
exercises/047_methods.zig

@@ -80,7 +80,7 @@ pub fn main() void {
     while (aliens_alive > 0) {
         aliens_alive = 0;
 
-        // Loop through every alien...
+        // Loop through every alien by reference by specifying that the capture value is a pointer
         for (aliens) |*alien| {
 
             // *** Zap the Alien Here! ***