aboutsummaryrefslogtreecommitdiff
path: root/docs/tables.md
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 /docs/tables.md
parenta201939a8150bc4c2f221925797ea2751c74b77c (diff)
Rename "NONE" to "none"
Diffstat (limited to 'docs/tables.md')
-rw-r--r--docs/tables.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/tables.md b/docs/tables.md
index ef2333a7..a8a2793f 100644
--- a/docs/tables.md
+++ b/docs/tables.md
@@ -43,12 +43,12 @@ table := {"A": 1, "B": 2}
>> table["A"]
= 1 : Int?
>> table["missing"]
-= NONE : Int?
+= none : Int?
```
As with all optional values, you can use the `!` postfix operator to assert
-that the value is non-NONE (and create a runtime error if it is), or you can
-use the `or` operator to provide a fallback value in the case that it's NONE:
+that the value is non-none (and create a runtime error if it is), or you can
+use the `or` operator to provide a fallback value in the case that it's none:
```tomo
>> table["A"]!
@@ -77,7 +77,7 @@ table value:
>> t2.fallback
= {"A":10} : {Text:Int}?
>> t.fallback
-= NONE : {Text:Int}?
+= none : {Text:Int}?
```
## Setting Values
@@ -213,7 +213,7 @@ The value associated with the key or null if the key is not found.
= 1 : Int?
>> t:get("????")
-= NONE : Int?
+= none : Int?
>> t:get("A")!
= 1 : Int