Skip to content

Commit 8ba7a64

Browse files
committed
modify: add a init method in O2PlayingCard
1 parent d7c513d commit 8ba7a64

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/O2PlayingCard.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
public struct O2PlayingCard {
22
let rank: O2Rank
33
let suit: O2Suit
4+
5+
public init(rank: O2Rank, suit: O2Suit) {
6+
self.rank = rank
7+
self.suit = suit
8+
}
49
}
510

611

0 commit comments

Comments
 (0)