Skip to content

Commit 950a827

Browse files
committed
allow show to be used for any type parameter
1 parent edbd29b commit 950a827

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Polynomial.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function show(io::IO, p::Poly)
5555
print(io,")")
5656
end
5757

58-
function print{T<:Real}(io::IO, p::Poly{T})
58+
function print{T}(io::IO, p::Poly{T})
5959
n = length(p)
6060
if n <= 0
6161
print(io,"0")
@@ -85,7 +85,7 @@ function print{T<:Real}(io::IO, p::Poly{T})
8585
end
8686
end
8787

88-
function print{T<:ComplexPair}(io::IO, p::Poly{T})
88+
function print{T<:Complex}(io::IO, p::Poly{T})
8989
n = length(p)
9090
if n <= 0
9191
print(io,"0")

0 commit comments

Comments
 (0)