From 20c34833bbc105675d014c8a0a4d2b17fc787c26 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 21 Apr 2025 14:58:28 -0400 Subject: Fix old syntax in docs --- api/builtins.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api/builtins.md') 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. -- cgit v1.2.3