mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-11-13 21:40:46 -05:00
Merge pull request #11 from tijb/patch-2
Update 04_arrays.zig | Array Index
This commit is contained in:
commit
6c53364b38
1 changed files with 2 additions and 2 deletions
|
@ -11,11 +11,11 @@
|
||||||
//
|
//
|
||||||
// Get values of an array using array[index] notation:
|
// 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:
|
// 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:
|
// Get the length of an array using the len property:
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue