Update 04_arrays.zig

array index was off by 1.
This commit is contained in:
tim bangma 2021-02-12 23:55:26 -05:00 committed by GitHub
parent 8133b22be1
commit 8bacd290d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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:
//