diff --git a/Sources/PlayingCard/PlayingCard.swift b/Sources/PlayingCard/PlayingCard.swift index 4d86bd4..3db0d98 100644 --- a/Sources/PlayingCard/PlayingCard.swift +++ b/Sources/PlayingCard/PlayingCard.swift @@ -28,7 +28,7 @@ extension PlayingCard: Comparable { // MARK: - CustomStringConvertible -extension PlayingCard : CustomStringConvertible { +extension PlayingCard: CustomStringConvertible { public var description: String { return "\(suit) \(rank)" } diff --git a/Sources/PlayingCard/Rank.swift b/Sources/PlayingCard/Rank.swift index ab3da99..9c55f3f 100644 --- a/Sources/PlayingCard/Rank.swift +++ b/Sources/PlayingCard/Rank.swift @@ -8,7 +8,7 @@ See http://swift.org/CONTRIBUTORS.txt for Swift project authors */ -public enum Rank : Int { +public enum Rank: Int { case two = 2 case three, four, five, six, seven, eight, nine, ten case jack, queen, king, ace @@ -16,7 +16,7 @@ public enum Rank : Int { // MARK: - Comparable -extension Rank : Comparable { +extension Rank: Comparable { public static func <(lhs: Rank, rhs: Rank) -> Bool { switch (lhs, rhs) { case (_, _) where lhs == rhs: @@ -31,7 +31,7 @@ extension Rank : Comparable { // MARK: - CustomStringConvertible -extension Rank : CustomStringConvertible { +extension Rank: CustomStringConvertible { public var description: String { switch self { case .ace: return "A" diff --git a/Sources/PlayingCard/Suit.swift b/Sources/PlayingCard/Suit.swift index 6b205b5..baa2803 100644 --- a/Sources/PlayingCard/Suit.swift +++ b/Sources/PlayingCard/Suit.swift @@ -31,7 +31,7 @@ extension Suit: Comparable { // MARK: - CustomStringConvertible -extension Suit : CustomStringConvertible { +extension Suit: CustomStringConvertible { public var description: String { switch self { case .spades: return "♠︎"