Cosmetic changes

This commit is contained in:
Krzosa Karol
2022-09-27 14:57:10 +02:00
parent dda2252ca2
commit d39686c480
8 changed files with 18 additions and 18 deletions

View File

@@ -14,8 +14,8 @@ be nice if handling of that was simplified.
main :: (): int
static_array: [8]int
// We can get size of array using length_of builtin
#Assert(length_of(static_array) == 8)
// We can get size of array using Length builtin
#Assert(Length(static_array) == 8)
// Accessing values is like in C
// Variables are zeroed by default
@@ -39,7 +39,7 @@ main :: (): int
slice: []int = static_array
// We can't do a compile time Assert anymore
Assert(length_of(slice) == 8)
Assert(Length(slice) == 8)
Assert(slice[4] == 1)
// After we loop and reassign slice values