diff options
author | tim bangma <git.bangma@pm.me> | 2021-02-12 23:55:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-12 23:55:26 -0500 |
commit | 8bacd290d9eb64412fd8b18c2af96e148d84b98f (patch) | |
tree | 107e45212675346a544df0c88060655b83039394 /exercises/04_arrays.zig | |
parent | 8133b22be1d51589771df40e8d5e4bc2f3ba3b8e (diff) | |
download | ziglings-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.zig | 4 |
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: // |