Skip to content

Commit bb4a08c

Browse files
committed
change empty ProductSpace printing
1 parent 24ca355 commit bb4a08c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/spaces/productspace.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ dual(P::ProductSpace) = ProductSpace(map(dual, reverse(P.spaces)))
6868
function Base.show(io::IO, P::ProductSpace{S}) where {S <: ElementarySpace}
6969
spaces = P.spaces
7070
if length(spaces) == 0
71-
print(io, "ProductSpace{", S, ", 0}")
71+
return print(io, "one(", type_repr(S), ")")
7272
end
7373
if length(spaces) == 1
7474
print(io, "ProductSpace")

0 commit comments

Comments
 (0)