Skip to content

Commit a99bbce

Browse files
authored
Fix warning: wrap vararg in unionall (#18)
1 parent 426f59d commit a99bbce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ end
3939
Base.replace(str::DenseStringViewAndSub, pat_repl::Pair{<:AbstractChar}; count::Integer=typemax(Int)) =
4040
replace(str, isequal(first(pat_repl)) => last(pat_repl); count=count)
4141

42-
Base.replace(str::DenseStringViewAndSub, pat_repl::Pair{<:Union{Tuple{Vararg{<:AbstractChar}},
42+
Base.replace(str::DenseStringViewAndSub, pat_repl::Pair{<:Union{Tuple{Vararg{AbstractChar}},
4343
AbstractVector{<:AbstractChar},Set{<:AbstractChar}}};
4444
count::Integer=typemax(Int)) =
4545
replace(str, in(first(pat_repl)) => last(pat_repl), count=count)

0 commit comments

Comments
 (0)