We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24ca355 commit bb4a08cCopy full SHA for bb4a08c
1 file changed
src/spaces/productspace.jl
@@ -68,7 +68,7 @@ dual(P::ProductSpace) = ProductSpace(map(dual, reverse(P.spaces)))
68
function Base.show(io::IO, P::ProductSpace{S}) where {S <: ElementarySpace}
69
spaces = P.spaces
70
if length(spaces) == 0
71
- print(io, "ProductSpace{", S, ", 0}")
+ return print(io, "one(", type_repr(S), ")")
72
end
73
if length(spaces) == 1
74
print(io, "ProductSpace")
0 commit comments