aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortim bangma <[email protected]>2021-02-12 23:55:26 -0500
committerGitHub <[email protected]>2021-02-12 23:55:26 -0500
commit0788198de3e8498e9c6176be6d1b6f0e6f5dfbd4 (patch)
tree107e45212675346a544df0c88060655b83039394
parent7023b5345c4fc29aa58aebf47d1968c466da30e2 (diff)
downloadziglings-0788198de3e8498e9c6176be6d1b6f0e6f5dfbd4.tar.xz
ziglings-0788198de3e8498e9c6176be6d1b6f0e6f5dfbd4.zip
Update 04_arrays.zig
array index was off by 1.
-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:
//