Skip to content

Commit c00c042

Browse files
committed
fix
1 parent 1c78c76 commit c00c042

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/StructHelpers.jl

+3-5
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,16 @@ import ConstructionBase: getproperties, constructorof, setproperties
88
"""
99
hash_eq_as(obj)
1010
11-
This allows to fine tune the behavior or `hash`, `==` and `isequal`
12-
for structs decorated by [`@batteries`](@ref).
11+
This allows to fine tune the behavior or `hash`, `==` and `isequal` for structs decorated by [`@batteries`](@ref).
1312
For instances the generated `isequal` method looks like this:
1413
```julia
15-
1614
function Base.isequal(o1::T, o2::T)
1715
proxy1 = StructHelpers.hash_eq_as(o1)
1816
proxy2 = StructHelpers.hash_eq_as(o2)
19-
StructHelper.structural_eq(proxy1, proxy2)
17+
isequal(proxy1, proxy2)
2018
end
2119
```
22-
Overloading `hash_eq_as` is useful if you want for instance to skip certain fields
20+
Overloading `hash_eq_as` is useful for instance if you want to skip certain fields
2321
of `obj` or handle them in a special way.
2422
"""
2523
function hash_eq_as(obj)

0 commit comments

Comments
 (0)