aboutsummaryrefslogtreecommitdiff
path: root/docs/text.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-02 16:14:20 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-02 16:14:20 -0400
commit6ec8f20fc506af4af5513803fb9a708e4f7b5040 (patch)
tree8b952073f6eda5b85c375a65c73647a85fa16f27 /docs/text.md
parentecaf34247eb0728a913804033cf302dada417028 (diff)
Syntax change: table types are now: `{K=V; default=...}` and tables
use `{:K=V, ...; default=...}`
Diffstat (limited to 'docs/text.md')
-rw-r--r--docs/text.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/text.md b/docs/text.md
index ca7e399f..fd79fdbd 100644
--- a/docs/text.md
+++ b/docs/text.md
@@ -295,7 +295,7 @@ finding the value because the two texts are equivalent under normalization.
- [`func starts_with(text: Text, prefix: Text -> Bool)`](#starts_with)
- [`func title(text: Text, language: Text = "C" -> Text)`](#title)
- [`func to(text: Text, last: Int -> Text)`](#to)
-- [`func translate(translations:{Text,Text} -> Text)`](#translate)
+- [`func translate(translations:{Text=Text} -> Text)`](#translate)
- [`func trim(text: Text, to_trim: Text = " $\t\r\n", left: Bool = yes, right: Bool = yes -> Text)`](#trim)
- [`func upper(text: Text, language: Text "C" -> Text)`](#upper)
- [`func utf32_codepoints(text: Text -> [Int32])`](#utf32_codepoints)
@@ -1065,7 +1065,7 @@ replacement text, so replacement text is not recursively modified. See
[`replace()`](#replace) for more information about replacement behavior.
```tomo
-func translate(translations:{Text,Text} -> Text)
+func translate(translations:{Text=Text} -> Text)
```
- `text`: The text in which to perform replacements.