Skip to content

Commit 61253d1

Browse files
committed
Xor value.hashValue in hashable extension
1 parent ad53a81 commit 61253d1

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)