aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gleam/regex.gleam2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gleam/regex.gleam b/src/gleam/regex.gleam
index ad504d0..4fc1864 100644
--- a/src/gleam/regex.gleam
+++ b/src/gleam/regex.gleam
@@ -207,8 +207,8 @@ fn do_scan(a: Regex, b: String) -> List(Match)
/// // -> "a/b/c/d/e"
/// `
pub fn replace(
- in string: String,
each pattern: Regex,
+ in string: String,
with substitute: String,
) -> String {
do_replace(pattern, string, substitute)