aboutsummaryrefslogtreecommitdiff
path: root/exercises
diff options
context:
space:
mode:
authorDave Gauer <ratfactor@gmail.com>2022-07-31 16:24:48 -0400
committerGitHub <noreply@github.com>2022-07-31 16:24:48 -0400
commit93ecc1643e6cd977f352192b9f00324fbb749b14 (patch)
tree177672bb3aa2f7a3a383ca9ab302e366f9491e59 /exercises
parenta62e9108bdecbef700a6a1131688e5cde99f0511 (diff)
parent62e0bc88d60bc5505173131f421ee66fb641fd4a (diff)
downloadziglings-93ecc1643e6cd977f352192b9f00324fbb749b14.tar.gz
ziglings-93ecc1643e6cd977f352192b9f00324fbb749b14.tar.bz2
ziglings-93ecc1643e6cd977f352192b9f00324fbb749b14.tar.xz
ziglings-93ecc1643e6cd977f352192b9f00324fbb749b14.zip
Merge pull request #112 from nahuakang/ex047-reference
Edit comment to specify `for reference`
Diffstat (limited to 'exercises')
-rw-r--r--exercises/047_methods.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/047_methods.zig b/exercises/047_methods.zig
index a3ed220..0e7bfa8 100644
--- a/exercises/047_methods.zig
+++ b/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! ***