diff options
author | Rado <r.hampartsumyan@viscomp.bg> | 2024-06-20 17:29:10 +0300 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2024-06-23 13:37:27 +0100 |
commit | f86ab943e6326c8712314efcc906947fc3fe2ef4 (patch) | |
tree | 580935cad4e55d6ad72c73b36fbc12b0418a3f1b | |
parent | 53b475e86fc3bd5d31773de3bf395b6c91b79a6c (diff) | |
download | gleam_stdlib-f86ab943e6326c8712314efcc906947fc3fe2ef4.tar.gz gleam_stdlib-f86ab943e6326c8712314efcc906947fc3fe2ef4.zip |
Change the arguments order of regex.replace to be consistent with the rest of the module functions
-rw-r--r-- | src/gleam/regex.gleam | 2 |
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) |