From 37f3e91f6c95d46f161dbde05b0a005fe7e7c17a Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 7 Dec 2024 16:04:25 -0500 Subject: Rename "NONE" to "none" --- docs/tables.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'docs/tables.md') 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 -- cgit v1.2.3