aboutsummaryrefslogtreecommitdiff
path: root/docs/text.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-11-24 16:18:21 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-11-24 16:18:21 -0500
commit1e3fb8a2c0cca385d65c52679411b118b5fb4641 (patch)
treee8e7ae5b4a8b4f39ed867c238f1a05494b6a50ac /docs/text.md
parent0e10313d64f54dd587ebbcd5f413bd999333c911 (diff)
Rename "NULL" to "NONE"
Diffstat (limited to 'docs/text.md')
-rw-r--r--docs/text.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/text.md b/docs/text.md
index 15b08d9c..d67f0a7b 100644
--- a/docs/text.md
+++ b/docs/text.md
@@ -3,7 +3,7 @@
`Text` is Tomo's datatype to represent text. The name `Text` is used instead of
"string" because Tomo text represents immutable, normalized unicode data with
fast indexing that has an implementation that is efficient for concatenation.
-These are _not_ C-style NULL-terminated character arrays. GNU libunistring is
+These are _not_ C-style NUL-terminated character arrays. GNU libunistring is
used for full Unicode functionality (grapheme cluster counts, capitalization,
etc.).
@@ -695,9 +695,9 @@ containing information about the match.
**Example:**
```tomo
>> " #one #two #three ":find($/#{id}/, start=-999)
-= NULL : Match?
+= NONE : Match?
>> " #one #two #three ":find($/#{id}/, start=999)
-= NULL : Match?
+= NONE : Match?
>> " #one #two #three ":find($/#{id}/)
= Match(text="#one", index=2, captures=["one"]) : Match?
>> " #one #two #three ":find("{id}", start=6)
@@ -887,7 +887,7 @@ or a null value otherwise.
**Example:**
```tomo
>> "hello world":matches($/{id}/)
-= NULL : [Text]?
+= NONE : [Text]?
>> "hello world":matches($/{id} {id}/)
= ["hello", "world"] : [Text]?