aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gleam/regex.gleam4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gleam/regex.gleam b/src/gleam/regex.gleam
index 4fc1864..0b95922 100644
--- a/src/gleam/regex.gleam
+++ b/src/gleam/regex.gleam
@@ -197,13 +197,13 @@ fn do_scan(a: Regex, b: String) -> List(Match)
///
/// ```gleam
/// let assert OK(re) = regex.from_string("^https://")
-/// replace("https://example.com", each: re, with: "www.")
+/// replace(each: re, in: "https://example.com", with: "www.")
/// // -> "www.example.com"
/// ```
///
/// ```gleam
/// let assert OK(re) = regex.from_string("[, +-]")
-/// replace("a,b-c d+e", each: re, with: "/")
+/// replace(each: re, in: "a,b-c d+e", with: "/")
/// // -> "a/b/c/d/e"
/// `
pub fn replace(