Skip to content

Commit

Permalink
print_fields bug
Browse files Browse the repository at this point in the history
  • Loading branch information
milankl committed Oct 3, 2023
1 parent 7251a35 commit 565ccc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utility_functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function print_fields(io::IO,A,keys;arrays::Bool=false)
filtered = n < length(keys)
for (i,key) in enumerate(keys_filtered)
last = (i == n) & ~filtered
key = keys[i]
key = keys_filtered[i]
val = getfield(A,key)
~last ? println(io,"$key::$(typeof(val)) = $val") :
print(io, "$key::$(typeof(val)) = $val")
Expand Down

0 comments on commit 565ccc2

Please sign in to comment.