aboutsummaryrefslogtreecommitdiff
path: root/docs/text.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/text.md')
-rw-r--r--docs/text.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/text.md b/docs/text.md
index d3063443..35196d25 100644
--- a/docs/text.md
+++ b/docs/text.md
@@ -370,7 +370,7 @@ text := "
line one
line two
"
-for line in text.by_line():
+for line in text.by_line()
# Prints: "line one" then "line two":
say(line)
```
@@ -398,7 +398,7 @@ delimiter (the default) will iterate over single grapheme clusters in the text.
**Example:**
```tomo
text := "one,two,three"
-for chunk in text.by_split(","):
+for chunk in text.by_split(",")
# Prints: "one" then "two" then "three":
say(chunk)
```
@@ -425,7 +425,7 @@ given delimiter characters, until it runs out and returns `none`.
**Example:**
```tomo
text := "one,two,;,three"
-for chunk in text.by_split_any(",;"):
+for chunk in text.by_split_any(",;")
# Prints: "one" then "two" then "three":
say(chunk)
```