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 authored and musm committed Oct 7, 2020
1 parent 862b6d7 commit 6425081
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::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 6425081

Please sign in to comment.