diff --git a/stdlib/regex.gr b/stdlib/regex.gr index 5874587f8..b385de8d9 100644 --- a/stdlib/regex.gr +++ b/stdlib/regex.gr @@ -3046,7 +3046,7 @@ export let replace = (rx: RegularExpression, toSearch: String, replacement: Stri * @param replacement: The string that replaces matches * @returns The input string with the appropriate replacements, if any * - * @example assert Regex.replaceAll(Result.unwrap(Regex.make("a")), "skaat", "r") == "skrrt" + * @example assert Regex.replaceAll(Result.unwrap(Regex.make("o")), "skoot", "r") == "skrrt" * * @since 0.4.3 */ diff --git a/stdlib/regex.md b/stdlib/regex.md index b7566f669..fdd837744 100644 --- a/stdlib/regex.md +++ b/stdlib/regex.md @@ -444,6 +444,6 @@ Returns: Examples: ```grain -assert Regex.replaceAll(Result.unwrap(Regex.make("a")), "skaat", "r") == "skrrt" +assert Regex.replaceAll(Result.unwrap(Regex.make("o")), "skoot", "r") == "skrrt" ```