Skip to content

Commit 0649972

Browse files
committed
fix show
1 parent 919cb25 commit 0649972

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/accumulators.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,10 @@ AccumulatorTuple(nt::NamedTuple) = AccumulatorTuple(tuple(nt...))
129129

130130
# When showing with text/plain, leave out type information about the wrapper AccumulatorTuple.
131131
function Base.show(io::IO, mime::MIME"text/plain", at::AccumulatorTuple)
132-
return "AccumulatorTuple(" * show(io, mime, at.nt) * ")"
132+
print(io, "AccumulatorTuple(")
133+
show(io, mime, at.nt)
134+
print(io, ")")
135+
return nothing
133136
end
134137
Base.getindex(at::AccumulatorTuple, idx) = at.nt[idx]
135138
Base.length(::AccumulatorTuple{N}) where {N} = N

0 commit comments

Comments
 (0)