Skip to content

Commit

Permalink
Fix show for type Interval (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
singularitti authored Jan 30, 2023
1 parent cf9301d commit cb23e64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contrib.jl
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ Base.broadcastable(I::Interval) = Ref(I)
function Base.show(io::IO, I::Interval{T,L,R}) where {T,L,R}
l,r = extrema(I)
print(io, L == Closed ? "[" : "(")
print(io, l, ", ", r)
print(io, l, "..", r)
print(io, R == Closed ? "]" : ")")
end

Expand Down

0 comments on commit cb23e64

Please sign in to comment.