From 6ec8f20fc506af4af5513803fb9a708e4f7b5040 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 2 Apr 2025 16:14:20 -0400 Subject: Syntax change: table types are now: `{K=V; default=...}` and tables use `{:K=V, ...; default=...}` --- docs/text.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/text.md') 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. -- cgit v1.2.3