aboutsummaryrefslogtreecommitdiff
path: root/examples/learnxiny.tm
diff options
context:
space:
mode:
Diffstat (limited to 'examples/learnxiny.tm')
-rw-r--r--examples/learnxiny.tm4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/learnxiny.tm b/examples/learnxiny.tm
index d5d3a8d6..a03db6c9 100644
--- a/examples/learnxiny.tm
+++ b/examples/learnxiny.tm
@@ -114,7 +114,7 @@ func main()
assert table["xxx"] or 0 == 0
# Empty tables require specifying the key and value types:
- empty_table : {Text=Int}
+ empty_table : {Text:Int}
# Tables can be iterated over either by key or key,value:
for key in table
@@ -290,7 +290,7 @@ func demo_enums()
assert "$my_shape" == "Circle(1)" == yes
- assert {my_shape="nice"} == {Shape.Circle(1)="nice"}
+ assert {my_shape: "nice"} == {Shape.Circle(1): "nice"}
func demo_lambdas()
# Lambdas, or anonymous functions, can be used like this: