aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-05 11:35:53 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-03-05 11:35:53 -0500
commit2c4324670ff569ede360d13875c5e4b5720a626d (patch)
tree626a779c6136ce6edd580773b8bc66dfd0804f9f /docs
parent899e2cd3f1ea5f598947c7862d8f76378191b369 (diff)
Add print() as alias for say()
Diffstat (limited to 'docs')
-rw-r--r--docs/README.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/README.md b/docs/README.md
index d427dee7..4bfc2e1e 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -90,6 +90,27 @@ exit(status=1, "Goodbye forever!")
---
+### `print`
+Prints a message to the console (alias for [`say`](#say)).
+
+```tomo
+func print(text:Text, newline:Bool = yes -> Void)
+```
+
+- `text`: The text to print.
+- `newline`: Whether or not to print a newline after the text.
+
+**Returns:**
+Nothing.
+
+**Example:**
+```tomo
+print("Hello ", newline=no)
+print("world!")
+```
+
+---
+
### `say`
Prints a message to the console.