Skip to content

Commit 85636ed

Browse files
committed
Merge pull request #1 from gmertk/fix-hashable
Xor value.hashValue in hashable extension
2 parents ad53a81 + 61253d1 commit 85636ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CardKit/Card.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ public func == (lhs: Card, rhs: Card) -> Bool {
2323

2424
extension Card : Hashable {
2525
public var hashValue: Int {
26-
return suit.hashValue
26+
return suit.hashValue ^ value.hashValue
2727
}
2828
}

0 commit comments

Comments
 (0)