diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-10-27 21:14:27 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-10-27 21:14:27 -0400 |
| commit | ce2aebe91085f987aab31bd2a49820fb605cf386 (patch) | |
| tree | 9241858c01f68b4eccd2be88f8e12997c885cf46 /docs/booleans.md | |
| parent | efb7be5bc4876c3113041848fb6d901a4f3ab4e9 (diff) | |
Update docs to reflect deprecation of "&" stack references
Diffstat (limited to 'docs/booleans.md')
| -rw-r--r-- | docs/booleans.md | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/docs/booleans.md b/docs/booleans.md index a08faa9f..5610d863 100644 --- a/docs/booleans.md +++ b/docs/booleans.md @@ -16,13 +16,12 @@ boolean values are case-insensitive variations of `yes`/`no`, `y`/`n`, **Signature:** ```tomo -func from_text(text: Text, success: Bool = !&Bool -> Bool) +func from_text(text: Text -> Bool?) ``` **Parameters:** - `text`: The string containing the boolean value. -- `success`: If provided, this boolean value reference will be set to `yes` if the given text is a recognizable boolean value or `no` otherwise. **Returns:** `yes` if the string matches a recognized truthy boolean value; otherwise return `no`. @@ -30,14 +29,11 @@ func from_text(text: Text, success: Bool = !&Bool -> Bool) **Example:** ```tomo >> Bool.from_text("yes") -= yes += yes? >> Bool.from_text("no") -= no ->> success := yes ->> Bool.from_text("???", &success) -= no ->> success -= no += no? +>> Bool.from_text("???") += !Bool ``` --- |
