aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-01 23:27:08 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-03-01 23:27:08 -0500
commit4be1840907e8ee8b5428af8982978f21ec79e458 (patch)
tree3650fa7eecfb04568f0e820e810ee00f67df98d1
parent5cb66f2ba897cd790b2eacd122731b3808d18895 (diff)
Fix docs for recursive replace_all
-rw-r--r--docs/text.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/text.md b/docs/text.md
index 3e6ed0dc..32cdbb35 100644
--- a/docs/text.md
+++ b/docs/text.md
@@ -288,8 +288,8 @@ Text.find(pattern:Pattern, start=1 -> Match?)
Text.find_all(pattern:Pattern -> [Match])
Text.matches(pattern:Pattern -> [Text]?)
Text.map(pattern:Pattern, fn:func(m:Match -> Text) -> Text)
-Text.replace(pattern:Pattern, replacement:Text, placeholder:Pattern=$// -> [Text])
-Text.replace_all(replacements:{Pattern,Text}, placeholder:Pattern=$// -> [Text])
+Text.replace(pattern:Pattern, replacement:Text, placeholder:Pattern=$//, recursive=yes -> [Text])
+Text.replace_all(replacements:{Pattern,Text}, placeholder:Pattern=$//, recursive=yes -> [Text])
Text.split(pattern:Pattern -> [Text])
Text.trim(pattern=$/{whitespace}/, trim_left=yes, trim_right=yes -> [Text])
```
@@ -1194,7 +1194,7 @@ See [`replace()`](#replace) for more information about replacement behavior.
**Signature:**
```tomo
-func replace_all(replacements:{Pattern,Text}, backref: Pattern = $/\/ -> Text)
+func replace_all(replacements:{Pattern,Text}, backref: Pattern = $/\/, recursive: Bool = yes -> Text)
```
**Parameters:**