aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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]`