diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 23:37:05 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 23:37:05 -0400 |
| commit | 1a196aa8f724971e531487f9cdd541f7957cfd92 (patch) | |
| tree | 52a36701065ab0e3f7012765c909c3b2a3fd2e49 /docs/text.md | |
| parent | 4a3db447ce820617a72bdd9fc6217c84c3799bea (diff) | |
Update syntax in docs
Diffstat (limited to 'docs/text.md')
| -rw-r--r-- | docs/text.md | 6 |
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) ``` |
