diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-21 14:58:28 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-21 14:58:28 -0400 |
| commit | 20c34833bbc105675d014c8a0a4d2b17fc787c26 (patch) | |
| tree | 9e7826eea5490a8d62451401c920da6d27175718 /api/builtins.md | |
| parent | 3b1acb8ac5788061b90aeb9069ddecacf265f20c (diff) | |
Fix old syntax in docs
Diffstat (limited to 'api/builtins.md')
| -rw-r--r-- | api/builtins.md | 4 |
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. |
