Merge pull request #241 from TheLittleBoy/patch-5

代码编写错误修正
This commit is contained in:
ChildhoodAndy
2014-07-06 14:27:28 +08:00

View File

@ -89,7 +89,7 @@ println("There are now \(Bank.coinsInBank) coins left in the bank")
```swift ```swift
playerOne!.winCoins(2_000) playerOne!.winCoins(2_000)
println("PlayerOne won 2000 coins & now has \ (playerOne!.coinsInPurse) coins") println("PlayerOne won 2000 coins & now has \(playerOne!.coinsInPurse) coins")
// 输出 "PlayerOne won 2000 coins & now has 2100 coins" // 输出 "PlayerOne won 2000 coins & now has 2100 coins"
println("The bank now only has \(Bank.coinsInBank) coins left") println("The bank now only has \(Bank.coinsInBank) coins left")
// 输出 "The bank now only has 7900 coins left" // 输出 "The bank now only has 7900 coins left"