mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-11-13 21:40:46 -05:00
Merge pull request #13 from Ivan-Velickovic/main
04_arrays.zig - missing ":" for type of example array
This commit is contained in:
commit
8edfe2f157
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
//
|
//
|
||||||
// Let's learn some array basics. Arrays are declared with:
|
// 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
|
// 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
|
// size. You can also let Zig infer the type of the value so the
|
||||||
|
|
Loading…
Reference in a new issue