aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-07-23 14:29:23 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-07-23 14:29:23 -0400
commit09ea357f46784b61886ef28b54fded632509b273 (patch)
tree3bf31ad590359935b4114b2b2a43fe44b7870b78
parent6467e6c9d08865e48a9b4ae021c34c92936cc98c (diff)
Update string docs
-rw-r--r--docs/strings.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/strings.md b/docs/strings.md
index fceef24b..343b6bc3 100644
--- a/docs/strings.md
+++ b/docs/strings.md
@@ -282,9 +282,9 @@ finding the value because the two strings are equivalent under normalization.
### Patterns
-- `string:has("target", at=Anywhere:enum(Anywhere, Start, End))->Bool` Check whether a pattern can be found
-- `string:without("target", at=Anywhere:enum(Anywhere, Start, End))->Text`
-- `string:trimmed("chars...", at=Anywhere:enum(Anywhere, Start, End))->Text`
+- `string:has("target", at=Where.Anywhere|Where.Start|Where.End)->Bool` Check whether a pattern can be found
+- `string:without("target", at=Where.Anywhere|Where.Start|Where.End)->Text`
+- `string:trimmed("chars...", at=Where.Anywhere|Where.Start|Where.End)->Text`
- `string:find("target")->enum(Failure, Success(index:Int32))`
- `string:replace("target", "replacement", limit=Int.max)->Text` Returns a copy of the string with replacements
- `string:split("split")->[Text]`