Skip to content

Commit

Permalink
Update ProtoStruct.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Tortar authored Oct 14, 2023
1 parent 45c07a1 commit ab8f40c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ProtoStruct.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ macro proto( expr )
end # function

function Base.show(io::IO, o::$name{$(type_parameter_names...)}) where {$(type_parameters...)}
vals = join([x[] for x in getfield(a, :properties)], ", ")
vals = join([x[] for x in getfield(o, :properties)], ", ")
print(io, $name{$(type_parameter_names...)}, "($vals)")
end
end
Expand Down Expand Up @@ -175,7 +175,7 @@ macro proto( expr )
end # function

function Base.show(io::IO, o::$name{$(type_parameter_names...)}) where {$(type_parameters...)}
vals = join(getfield(a, :properties), ", ")
vals = join(getfield(o, :properties), ", ")
print(io, $name{$(type_parameter_names...)}, "($vals)")
end
end # quote
Expand Down

0 comments on commit ab8f40c

Please sign in to comment.