Skip to content

Commit a0e29da

Browse files
authored
Update hash-map.dd
Edited based on jmdavis' (https://github.com/jmdavis) input to more accurately reflect what takes place.
1 parent 72067b2 commit a0e29da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/hash-map.dd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ $(H2 $(LNAME2 using_classes_as_key, Using Classes as the KeyType))
108108
}
109109
}
110110
---
111-
The default implementations of $(D toHash) and $(D opEquals) for classes use $(D is)
112-
semantics (the address of the class instance is used to compute the hash, and the address of the class instance is used for comparisons).
111+
The default implementation of $(D opEquals) uses the address of the instance for comparisons,
112+
and the default implementation of $(D toHash) hashes the address of the instance.
113113

114114
$(IMPLEMENTATION_DEFINED
115115
`opCmp` is not used to check for equality by the

0 commit comments

Comments
 (0)