Update 02_a_swift_tour.md
This commit is contained in:
@ -547,7 +547,7 @@ if let convertedRank = Rank(rawValue: 3) {
|
||||
}
|
||||
```
|
||||
|
||||
枚举的成员值是实际值,并不是原始值的另一种表达方法。实际上,以防原始值没有意义,你不需要设置。
|
||||
枚举的成员值是实际值,并不是原始值的另一种表达方法。实际上,如果没有比较有意义的原始值,你就不需要提供原始值。
|
||||
|
||||
```swift
|
||||
enum Suit {
|
||||
|
||||
Reference in New Issue
Block a user