Cosmetic changes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user