From 01b825350a41fdcb31b760973f43020c12c72bdf Mon Sep 17 00:00:00 2001 From: Rafael Fourquet Date: Thu, 4 Apr 2019 16:50:09 +0200 Subject: [PATCH] update wrong example in docstring --- base/regex.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/regex.jl b/base/regex.jl index 00234ade2fe1a8..81f83891d3175f 100644 --- a/base/regex.jl +++ b/base/regex.jl @@ -534,8 +534,8 @@ meaning that the contained characters are devoid of any special meaning # Examples ```jldoctest -julia> r"Hello|Good bye" * ' ' * "world" -r"(?:Hello|Good bye) world" +julia> match(r"Hello|Good bye" * ' ' * "world", "Hello world") +RegexMatch("Hello world") julia> r = r"a|b" * "c|d" r"(?:a|b)\\Qc|d\\E"