校正+翻译 From SketchK
主要内容 1 `枚举`章节中的`递归枚举`一节中文章内容更新(原文与当前翻译内容不相符) 2 `属性`章节中的`存储属性`一节中的文字内容纠正(原文与当前翻译内容不相符) 3 `方法`章节中的`实例方法`的代码有误(++符号废弃) 4 `方法`章节中`self属性`的代码有误作(++符号废弃) 5 `继承`章节中`防止重写`一节中的文字内容纠正(原文与当前翻译中的内容不相符) 6 校正了"类和结构体","下标"两章的内容,没有发现明显错误
This commit is contained in:
@ -9,7 +9,10 @@
|
||||
> 翻译+校对:[DianQK](https://github.com/DianQK)
|
||||
|
||||
> 2.1
|
||||
> 翻译:[DianQK](https://github.com/DianQK),[Realank](https://github.com/Realank) 校对:[shanks](http://codebuild.me),2016-01-18
|
||||
> 翻译:[DianQK](https://github.com/DianQK),[Realank](https://github.com/Realank) 校对:[shanks](http://codebuild.me),2016-01-18
|
||||
>
|
||||
> 2.2
|
||||
> 校对:[SketchK](https://github.com/SketchK) 2016-05-13
|
||||
|
||||
本页包含内容:
|
||||
|
||||
@ -33,7 +36,7 @@
|
||||
class Counter {
|
||||
var count = 0
|
||||
func increment() {
|
||||
++count
|
||||
count += 1
|
||||
}
|
||||
func incrementBy(amount: Int) {
|
||||
count += amount
|
||||
@ -112,7 +115,7 @@ counter.incrementBy(5, numberOfTimes: 3)
|
||||
|
||||
```swift
|
||||
func increment() {
|
||||
self.count++
|
||||
self.count += 1
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user