diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-02 16:14:20 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-02 16:14:20 -0400 |
| commit | 6ec8f20fc506af4af5513803fb9a708e4f7b5040 (patch) | |
| tree | 8b952073f6eda5b85c375a65c73647a85fa16f27 /docs/text.md | |
| parent | ecaf34247eb0728a913804033cf302dada417028 (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.md | 4 |
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. |
