From f86ab943e6326c8712314efcc906947fc3fe2ef4 Mon Sep 17 00:00:00 2001 From: Rado Date: Thu, 20 Jun 2024 17:29:10 +0300 Subject: Change the arguments order of regex.replace to be consistent with the rest of the module functions --- src/gleam/regex.gleam | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3