Skip to content

Commit ec8ac92

Browse files
committed
Merge pull request #359 from suyup/develop
Corrected self.rawValue
2 parents 45701e0 + 1b06b2d commit ec8ac92

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

source-tw/chapter1/02_a_swift_tour.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,12 +513,12 @@ enum Rank: Int {
513513
case .King:
514514
return "king"
515515
default:
516-
return String(self.rawValue())
516+
return String(self.rawValue)
517517
}
518518
}
519519
}
520520
let ace = Rank.Ace
521-
let aceRawValue = ace.rawValue()
521+
let aceRawValue = ace.rawValue
522522
```
523523

524524
> 練習:

source/chapter1/02_a_swift_tour.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,12 +531,12 @@ enum Rank: Int {
531531
case .King:
532532
return "king"
533533
default:
534-
return String(self.rawValue())
534+
return String(self.rawValue)
535535
}
536536
}
537537
}
538538
let ace = Rank.Ace
539-
let aceRawValue = ace.rawValue()
539+
let aceRawValue = ace.rawValue
540540
```
541541

542542
> 练习:

0 commit comments

Comments
 (0)