aboutsummaryrefslogtreecommitdiff
path: root/docs/optionals.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-11-24 16:18:21 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-11-24 16:18:21 -0500
commit1e3fb8a2c0cca385d65c52679411b118b5fb4641 (patch)
treee8e7ae5b4a8b4f39ed867c238f1a05494b6a50ac /docs/optionals.md
parent0e10313d64f54dd587ebbcd5f413bd999333c911 (diff)
Rename "NULL" to "NONE"
Diffstat (limited to 'docs/optionals.md')
-rw-r--r--docs/optionals.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/optionals.md b/docs/optionals.md
index bb2aecfd..584625fe 100644
--- a/docs/optionals.md
+++ b/docs/optionals.md
@@ -63,7 +63,7 @@ x = !Int
## Type Inference
-For convenience, null values can also be written as `NULL` for any type in
+For convenience, null values can also be written as `NONE` for any type in
situations where the compiler knows what type of optional value is expected:
- When assigning to a variable that has already been declared as optional.
@@ -74,12 +74,12 @@ Here are some examples:
```tomo
x := 5?
-x = NULL
+x = NONE
func doop(arg:Int?)->Text?:
- return NULL
+ return NONE
-doop(NULL)
+doop(NONE)
```
Non-null values can also be automatically promoted to optional values without