From 09ea357f46784b61886ef28b54fded632509b273 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 23 Jul 2024 14:29:23 -0400 Subject: [PATCH] Update string docs --- docs/strings.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/strings.md b/docs/strings.md index fceef24..343b6bc 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]`