diff options
Diffstat (limited to 'exercises/04_arrays.zig')
-rw-r--r-- | exercises/04_arrays.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/exercises/04_arrays.zig b/exercises/04_arrays.zig index 0f4ffe1..c1e9fd9 100644 --- a/exercises/04_arrays.zig +++ b/exercises/04_arrays.zig @@ -1,7 +1,7 @@ // // Let's learn some array basics. Arrays are declared with: // -// var foo [3]u32 = [3]u32{ 42, 108, 5423 }; +// var foo: [3]u32 = [3]u32{ 42, 108, 5423 }; // // When Zig can infer the size of the array, you can use '_' for the // size. You can also let Zig infer the type of the value so the @@ -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: // |