Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
peblair committed Sep 14, 2021
1 parent 47f7f61 commit ac7cc7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stdlib/regex.gr
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion stdlib/regex.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
```

0 comments on commit ac7cc7f

Please sign in to comment.