aboutsummaryrefslogtreecommitdiff
path: root/api/builtins.md
diff options
context:
space:
mode:
Diffstat (limited to 'api/builtins.md')
-rw-r--r--api/builtins.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/builtins.md b/api/builtins.md
index dfab4c64..477b5464 100644
--- a/api/builtins.md
+++ b/api/builtins.md
@@ -37,14 +37,14 @@ force_tty | `Bool` | Whether or not to force the use of /dev/tty. | `yes`
## exit
```tomo
-exit : func(message: Text? = !Text, status: Int32 = Int32(1) -> Void)
+exit : func(message: Text? = none, status: Int32 = Int32(1) -> Void)
```
Exits the program with a given status and optionally prints a message.
Argument | Type | Description | Default
---------|------|-------------|---------
-message | `Text?` | If nonempty, this message will be printed (with a newline) before exiting. | `!Text`
+message | `Text?` | If nonempty, this message will be printed (with a newline) before exiting. | `none`
status | `Int32` | The status code that the program with exit with. | `Int32(1)`
**Return:** This function never returns.