Skip to content

Commit

Permalink
fix printing error in printtoc
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasIsensee committed Nov 19, 2024
1 parent 9930669 commit 6f4553c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/JLD2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,10 @@ Prints an overview of the contents of `f` to the `IO`.
Use the optional `numlines` parameter to restrict the amount of items listed.
"""
printtoc(f::JLDFile; kwargs...) = printtoc(Base.stdout, f; kwargs...)
printtoc(io::IO, f::JLDFile; numlines = typemax(Int64)) =
function printtoc(io::IO, f::JLDFile; numlines = typemax(Int64))
show_group(io, f.root_group, numlines, " ", true)
return nothing
end



Expand Down

0 comments on commit 6f4553c

Please sign in to comment.