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: case .King:
return "king" return "king"
default: default:
return String(self.rawValue()) return String(self.rawValue)
} }
} }
} }
let ace = Rank.Ace let ace = Rank.Ace
let aceRawValue = ace.rawValue() let aceRawValue = ace.rawValue
``` ```
> 練習: > 練習:

View File

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