Merge pull request #191 from chrboesch/dev_1711
dev.1711 - switched to multi-object-for-loops
This commit is contained in:
commit
c88777ded9
9 changed files with 18 additions and 16 deletions
|
|
@ -86,7 +86,7 @@ pub fn main() void {
|
|||
aliens_alive = 0;
|
||||
|
||||
// Loop through every alien by reference (* makes a pointer capture value)
|
||||
for (aliens) |*alien| {
|
||||
for (&aliens) |*alien| {
|
||||
|
||||
// *** Zap the alien with the heat ray here! ***
|
||||
???.zap(???);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue