Skip to content

Commit 53825d9

Browse files
Update src/ConstructionBase.jl
Co-authored-by: Frames White <[email protected]>
1 parent 8d35cb9 commit 53825d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ConstructionBase.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ getproperties(o::Tuple) = o
5050

5151
if VERSION >= v"1.7"
5252
function check_properties_are_fields(obj)
53-
# triple equals makes it easier for the compiler to optimize, see #82
53+
# for ntuples of symbols `===` is semantically the same as `==`
54+
# but triple equals is easier for the compiler to optimize, see #82
5455
if propertynames(obj) !== fieldnames(typeof(obj))
5556
error("""
5657
The function `Base.propertynames` was overloaded for type `$(typeof(obj))`.

0 commit comments

Comments
 (0)