Skip to content

Commit

Permalink
Use immutable struct where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
jmert committed Oct 7, 2020
1 parent dafabce commit f6b56e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HDF5.jl
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ end
convert(::Type{hid_t}, attr::Attribute) = attr.id
show(io::IO, attr::Attribute) = isvalid(attr) ? print(io, "HDF5 attribute: ", name(attr)) : print(io, "HDF5 attribute (invalid)")

mutable struct Attributes
struct Attributes
parent::Union{File,Group,Dataset}
end
attrs(p::Union{File,Group,Dataset}) = Attributes(p)
Expand Down

0 comments on commit f6b56e0

Please sign in to comment.