Skip to content

Commit

Permalink
fix Pairs definition in rendering.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
hhaensel committed Sep 11, 2023
1 parent 5cc5f46 commit e3b2524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stipple/rendering.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function join_js(xx, delim = ""; skip_empty = true, pre::Function = identity, st
for x_raw in xx
x = x_raw isa Base.Callable ? x_raw() : x_raw
io2 = IOBuffer()
if x isa Union{AbstractDict, Pair, Base.Pairs, Vector{<:Pair}}
if x isa Union{AbstractDict, Pair, Base.Iterators.Pairs, Vector{<:Pair}}
s = json(Dict(k => JSONText(v) for (k, v) in (x isa Pair ? [x] : x)))[2:end - 1]
print(io2, s)
else
Expand Down

0 comments on commit e3b2524

Please sign in to comment.