Skip to content

Commit eaf31c4

Browse files
Fix printing on Julia 1.6 (#288)
Use `P.name.wrapper` instead of `P.name` for printing the type.
1 parent 7e6cc17 commit eaf31c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/show.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Common Printing
5252
Base.show(io::IO, p::AbstractPolynomial) = show(io, MIME("text/plain"), p)
5353

5454
function Base.show(io::IO, mimetype::MIME"text/plain", p::P) where {P<:AbstractPolynomial}
55-
print(io,"$(P.name)(")
55+
print(io,"$(P.name.wrapper)(")
5656
printpoly(io, p, mimetype)
5757
print(io,")")
5858
end

0 commit comments

Comments
 (0)