From 1a196aa8f724971e531487f9cdd541f7957cfd92 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 6 Apr 2025 23:37:05 -0400 Subject: Update syntax in docs --- docs/text.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/text.md') 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) ``` -- cgit v1.2.3