修正代码
代码中应该没有回车
This commit is contained in:
@ -570,8 +570,7 @@ struct Card {
|
|||||||
var rank: Rank
|
var rank: Rank
|
||||||
var suit: Suit
|
var suit: Suit
|
||||||
func simpleDescription() -> String {
|
func simpleDescription() -> String {
|
||||||
return "The \(rank.simpleDescription()) of \
|
return "The \(rank.simpleDescription()) of \(suit.simpleDescription())"
|
||||||
(suit.simpleDescription())"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let threeOfSpades = Card(rank: .Three, suit: .Spades)
|
let threeOfSpades = Card(rank: .Three, suit: .Spades)
|
||||||
|
|||||||
Reference in New Issue
Block a user