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 7c6d128 commit 89e3680
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 @@ -284,7 +284,7 @@ end
convert(::Type{hid_t}, attr::HDF5Attribute) = attr.id
show(io::IO, attr::HDF5Attribute) = isvalid(attr) ? print(io, "HDF5 attribute: ", name(attr)) : print(io, "HDF5 attribute (invalid)")

mutable struct HDF5Attributes
struct HDF5Attributes
parent::Union{HDF5File, HDF5Group, HDF5Dataset}
end
attrs(p::Union{HDF5File, HDF5Group, HDF5Dataset}) = HDF5Attributes(p)
Expand Down

0 comments on commit 89e3680

Please sign in to comment.