aboutsummaryrefslogtreecommitdiff
path: root/examples/learnxiny.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-12-23 15:28:53 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-12-23 15:28:53 -0500
commit4771d6394d84eefaa45b661c1af8e20ac092a225 (patch)
tree6c0f08c7a6386eb454ef5b3a9059b84883a9ecdb /examples/learnxiny.tm
parent0ea6cdf216ca765039f3c01f5b32dc1103265b58 (diff)
parent1a62de25c448d2661864ba25a98686ed506e66af (diff)
Merge branch 'dev'
Diffstat (limited to 'examples/learnxiny.tm')
-rw-r--r--examples/learnxiny.tm3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/learnxiny.tm b/examples/learnxiny.tm
index 748f8957..6971f2a9 100644
--- a/examples/learnxiny.tm
+++ b/examples/learnxiny.tm
@@ -19,7 +19,7 @@ func main()
my_num := 2.0
# Strings can use interpolation with the dollar sign $:
- say("My variable is $my_variable and this is a sum: $(1 + 2)")
+ say("My variable is $my_variable, my num is $my_num, and this is a sum: $(1 + 2)")
say("
Multiline strings begin with a " at the end of a line and continue in
@@ -115,6 +115,7 @@ func main()
# Empty tables require specifying the key and value types:
empty_table : {Text:Int}
+ assert empty_table == {}
# Tables can be iterated over either by key or key,value:
for key in table