summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/regex.ur2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regex.ur b/src/regex.ur
index b379646..5e7be08 100644
--- a/src/regex.ur
+++ b/src/regex.ur
@@ -151,5 +151,5 @@ fun transform_matches needle f_match haystack =
(fn m => f_match (get_substrings haystack m))
haystack
-fun replace needle haystack replacement =
+fun replace needle replacement haystack =
transform_matches needle (fn _ => replacement) haystack