aboutsummaryrefslogtreecommitdiff
path: root/exercises/04_arrays.zig
diff options
context:
space:
mode:
authortim bangma <git.bangma@pm.me>2021-02-12 23:55:26 -0500
committerGitHub <noreply@github.com>2021-02-12 23:55:26 -0500
commit8bacd290d9eb64412fd8b18c2af96e148d84b98f (patch)
tree107e45212675346a544df0c88060655b83039394 /exercises/04_arrays.zig
parent8133b22be1d51589771df40e8d5e4bc2f3ba3b8e (diff)
downloadziglings-8bacd290d9eb64412fd8b18c2af96e148d84b98f.tar.gz
ziglings-8bacd290d9eb64412fd8b18c2af96e148d84b98f.tar.bz2
ziglings-8bacd290d9eb64412fd8b18c2af96e148d84b98f.tar.xz
ziglings-8bacd290d9eb64412fd8b18c2af96e148d84b98f.zip
Update 04_arrays.zig
array index was off by 1.
Diffstat (limited to 'exercises/04_arrays.zig')
-rw-r--r--exercises/04_arrays.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/04_arrays.zig b/exercises/04_arrays.zig
index 0f4ffe1..b8eeb9d 100644
--- a/exercises/04_arrays.zig
+++ b/exercises/04_arrays.zig
@@ -11,11 +11,11 @@
//
// Get values of an array using array[index] notation:
//
-// const bar = foo[3]; // 5423
+// const bar = foo[2]; // 5423
//
// Set values of an array using array[index] notation:
//
-// foo[3] = 16;
+// foo[2] = 16;
//
// Get the length of an array using the len property:
//