Просмотр исходного кода

Merge pull request #11 from tijb/patch-2

Update 04_arrays.zig | Array Index
Dave Gauer 4 лет назад
Родитель
Сommit
6c53364b38
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      exercises/04_arrays.zig

+ 2 - 2
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:
 //