aboutsummaryrefslogtreecommitdiff
path: root/examples/learnxiny.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-12-07 16:04:25 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-12-07 16:04:25 -0500
commit37f3e91f6c95d46f161dbde05b0a005fe7e7c17a (patch)
treec6e080ebbe7aed267b8ca0c5aec80fece51a5f65 /examples/learnxiny.tm
parenta201939a8150bc4c2f221925797ea2751c74b77c (diff)
Rename "NONE" to "none"
Diffstat (limited to 'examples/learnxiny.tm')
-rw-r--r--examples/learnxiny.tm6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/learnxiny.tm b/examples/learnxiny.tm
index af7a55f6..5315b034 100644
--- a/examples/learnxiny.tm
+++ b/examples/learnxiny.tm
@@ -108,17 +108,17 @@ func main():
>> table["two"]
= 2 : Int?
- # The value returned is optional because NONE will be returned if the key
+ # The value returned is optional because none will be returned if the key
# is not in the table:
>> table["xxx"]!
- = NONE : Int?
+ = none : Int?
# Optional values can be converted to regular values using `!` (which will
# create a runtime error if the value is null):
>> table["two"]!
= 2 : Int
- # You can also use `or` to provide a fallback value to replace NONE:
+ # You can also use `or` to provide a fallback value to replace none:
>> table["xxx"] or 0
= 0 : Int