diff --git a/src/ProtoStruct.jl b/src/ProtoStruct.jl index ff9a2d9..c5013f8 100644 --- a/src/ProtoStruct.jl +++ b/src/ProtoStruct.jl @@ -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 @@ -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