aboutsummaryrefslogtreecommitdiff
path: root/api/builtins.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-09-21 23:23:59 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-09-21 23:23:59 -0400
commit5824a2ef19879c59866667aced6b3f90e5925648 (patch)
treea18ddeadb0c164c7a544b571c3968f86afb759ba /api/builtins.md
parentbf067544e98f4085c26161953e301aaa00a904df (diff)
Update docs with proper assertions
Diffstat (limited to 'api/builtins.md')
-rw-r--r--api/builtins.md7
1 files changed, 3 insertions, 4 deletions
diff --git a/api/builtins.md b/api/builtins.md
index 477b5464..0b06a41b 100644
--- a/api/builtins.md
+++ b/api/builtins.md
@@ -30,8 +30,7 @@ force_tty | `Bool` | Whether or not to force the use of /dev/tty. | `yes`
**Example:**
```tomo
->> ask("What's your name? ")
-= "Arthur Dent"
+assert ask("What's your name? ") == "Arthur Dent"
```
## exit
@@ -92,8 +91,8 @@ name | `Text` | The name of the environment variable to get. | -
**Example:**
```tomo
->> getenv("TERM")
-= "xterm-256color"?
+assert getenv("TERM") == "xterm-256color"
+assert getenv("not_a_variable") == none
```
## print