aboutsummaryrefslogtreecommitdiff
path: root/exercises
diff options
context:
space:
mode:
authorNahua Kang <kangnahua@gmail.com>2022-07-24 22:57:05 +0200
committerNahua Kang <kangnahua@gmail.com>2022-07-24 22:57:05 +0200
commitbca0bca69d02d08599b9ee347c84e36ec0a5cf52 (patch)
treed12406f9a5842751fa64cbfb36ebef95c599357d /exercises
parent1a89e4ebf13756541916cf5ed47866a3dd7e74df (diff)
downloadziglings-bca0bca69d02d08599b9ee347c84e36ec0a5cf52.tar.gz
ziglings-bca0bca69d02d08599b9ee347c84e36ec0a5cf52.tar.bz2
ziglings-bca0bca69d02d08599b9ee347c84e36ec0a5cf52.tar.xz
ziglings-bca0bca69d02d08599b9ee347c84e36ec0a5cf52.zip
Edit comment above a for loop by reference line
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 b967ab8..1796ede 100644
--- a/exercises/047_methods.zig
+++ b/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! ***