Skip to content

Commit 01b8253

Browse files
committed
update wrong example in docstring
1 parent 2cd52f8 commit 01b8253

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/regex.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,8 @@ meaning that the contained characters are devoid of any special meaning
534534
535535
# Examples
536536
```jldoctest
537-
julia> r"Hello|Good bye" * ' ' * "world"
538-
r"(?:Hello|Good bye) world"
537+
julia> match(r"Hello|Good bye" * ' ' * "world", "Hello world")
538+
RegexMatch("Hello world")
539539
540540
julia> r = r"a|b" * "c|d"
541541
r"(?:a|b)\\Qc|d\\E"

0 commit comments

Comments
 (0)