Corrected self.rawValue

This commit is contained in:
Suyu Pan
2015-05-15 11:15:58 -04:00
parent 45701e057d
commit 1b06b2df92
2 changed files with 4 additions and 4 deletions

View File

@ -513,12 +513,12 @@ enum Rank: Int {
case .King:
return "king"
default:
return String(self.rawValue())
return String(self.rawValue)
}
}
}
let ace = Rank.Ace
let aceRawValue = ace.rawValue()
let aceRawValue = ace.rawValue
```
> 練習: