Skip to content

Commit

Permalink
Add conformance to CaseIterable
Browse files Browse the repository at this point in the history
  • Loading branch information
mattt authored and aciidgh committed Jan 14, 2019
1 parent 3e73c3e commit 39ddabb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/PlayingCard/Rank.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
See http://swift.org/CONTRIBUTORS.txt for Swift project authors
*/

public enum Rank: Int {
public enum Rank: Int, CaseIterable {
case two = 2
case three, four, five, six, seven, eight, nine, ten
case jack, queen, king, ace
Expand Down
2 changes: 1 addition & 1 deletion Sources/PlayingCard/Suit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
See http://swift.org/CONTRIBUTORS.txt for Swift project authors
*/

public enum Suit: String {
public enum Suit: String, CaseIterable {
case spades, hearts, diamonds, clubs
}

Expand Down

0 comments on commit 39ddabb

Please sign in to comment.