Skip to content

Commit 0653d11

Browse files
committed
fix missing variable
1 parent 0868487 commit 0653d11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tensors/abstracttensor.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ function Base.summary(io::IO, t::AbstractTensorMap)
644644
end
645645

646646
# Human-readable:
647-
function Base.show(io::IO, ::MIME"text/plain", t::AbstractTensorMap)
647+
function Base.show(io::IO, mime::MIME"text/plain", t::AbstractTensorMap)
648648
# 1) show summary: typically d₁×d₂×… ← d₃×d₄×… $(typeof(t))
649649
summary(io, t)
650650

@@ -664,6 +664,6 @@ function Base.show(io::IO, ::MIME"text/plain", t::AbstractTensorMap)
664664

665665
# 3) [optional]: show data
666666
println(io, "\n\n blocks: ")
667-
show_blocks(io, MIME"text/plain"(), blocks(t))
667+
show_blocks(io, mime, blocks(t))
668668
return nothing
669669
end

0 commit comments

Comments
 (0)