Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mattt authored and aciidgh committed Jan 14, 2019
1 parent bfcead2 commit 3e73c3e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Sources/PlayingCard/PlayingCard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ extension PlayingCard: Comparable {

// MARK: - CustomStringConvertible

extension PlayingCard : CustomStringConvertible {
extension PlayingCard: CustomStringConvertible {
public var description: String {
return "\(suit) \(rank)"
}
Expand Down
6 changes: 3 additions & 3 deletions Sources/PlayingCard/Rank.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
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
}

// MARK: - Comparable

extension Rank : Comparable {
extension Rank: Comparable {
public static func <(lhs: Rank, rhs: Rank) -> Bool {
switch (lhs, rhs) {
case (_, _) where lhs == rhs:
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion Sources/PlayingCard/Suit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ extension Suit: Comparable {

// MARK: - CustomStringConvertible

extension Suit : CustomStringConvertible {
extension Suit: CustomStringConvertible {
public var description: String {
switch self {
case .spades: return "♠︎"
Expand Down

0 comments on commit 3e73c3e

Please sign in to comment.