aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-04 04:34:31 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-04 04:34:31 -0400
commit85f1210b1a0177c68d63984024f0c461173fdd92 (patch)
tree55ef34ec4debbe38ab3e91650e0210d25d0588ff
parent79c1e8f989ec35f6cd8bb3b7a1250321b6a79569 (diff)
Bugfix
-rw-r--r--learnxiny.tm6
1 files changed, 3 insertions, 3 deletions
diff --git a/learnxiny.tm b/learnxiny.tm
index 91590206..88e7b819 100644
--- a/learnxiny.tm
+++ b/learnxiny.tm
@@ -59,8 +59,8 @@ func main():
my_numbers := [10, 20, 30]
# Empty arrays require specifying the type:
- empty := [:Int]
- >> empty.length
+ empty_array := [:Int]
+ >> empty_array.length
= 0
# Arrays are 1-indexed, so the first element is at index 1:
@@ -116,7 +116,7 @@ func main():
# >> table:get("xxx")
# Empty tables require specifying the key and value types:
- empty := {:Text:Int}
+ empty_table := {:Text:Int}
# Tables can be iterated over either by key or key,value:
for key in table: