Skip to content

Commit 7229cd5

Browse files
committed
update printing of ProductSpace{<:Any,0}
1 parent 1523d0e commit 7229cd5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/spaces/productspace.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,11 @@ dual(P::ProductSpace) = ProductSpace(map(dual, reverse(P.spaces)))
7171
function Base.show(io::IO, P::ProductSpace{S}) where {S <: ElementarySpace}
7272
spaces = P.spaces
7373
if length(spaces) == 0
74-
print(io, "ProductSpace{", S, ", 0}")
74+
print(io, "one(", type_repr(S), ")")
75+
return nothing
7576
end
7677
if length(spaces) == 1
77-
print(io, "ProductSpace")
78+
print(io, "")
7879
end
7980
print(io, "(")
8081
for i in 1:length(spaces)

0 commit comments

Comments
 (0)