From 8bacd290d9eb64412fd8b18c2af96e148d84b98f Mon Sep 17 00:00:00 2001 From: tim bangma Date: Fri, 12 Feb 2021 23:55:26 -0500 Subject: Update 04_arrays.zig array index was off by 1. --- exercises/04_arrays.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'exercises/04_arrays.zig') 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: // -- cgit v1.2.3-ZIG