去除冗余空行

This commit is contained in:
bqlin
2018-02-14 19:41:29 +08:00
parent 90f8d2cbbd
commit ad1d3944bc
33 changed files with 37 additions and 149 deletions

View File

@ -1,13 +1,13 @@
# 关于 SwiftAbout Swift
-----------------
> 1.0
> 翻译:[numbbbbb](https://github.com/numbbbbb)
> 校对:[yeahdongcn](https://github.com/yeahdongcn)
> 2.0
> 翻译+校对:[xtymichael](https://github.com/xtymichael)
>
# 关于 SwiftAbout Swift
-----------------
> 1.0
> 翻译:[numbbbbb](https://github.com/numbbbbb)
> 校对:[yeahdongcn](https://github.com/yeahdongcn)
> 2.0
> 翻译+校对:[xtymichael](https://github.com/xtymichael)
>
> 3.0 翻译+校对:[shanks](http://codebuild.me)2016-10-06
> 3.0.1 review : 2016-11-09
>
@ -15,8 +15,7 @@
>
> 4.0
> 翻译:[rain2540](https://github.com/rain2540) 2017-09-21
>
>
Swift 是一种非常好的编写软件的方式,无论是手机,台式机,服务器,还是其他运行代码的设备。它是一种安全,快速和互动的编程语言,将现代编程语言的精华和苹果工程师文化的智慧,以及来自开源社区的多样化贡献结合了起来。编译器对性能进行了优化,编程语言对开发进行了优化,两者互不干扰,鱼与熊掌兼得。
@ -24,12 +23,12 @@ Swift 对于初学者来说也很友好。它是第一个既满足工业标准
Swift通过采用现代编程模式来避免大量常见编程错误
* 变量始终在使用前初始化。
* 检查数组索引超出范围的错误。
* 检查整数是否溢出。
* 可选值确保明确处理 nil 值。
* 内存被自动管理。
* 错误处理允许从意外故障控制恢复。
* 变量始终在使用前初始化。
* 检查数组索引超出范围的错误。
* 检查整数是否溢出。
* 可选值确保明确处理 nil 值。
* 内存被自动管理。
* 错误处理允许从意外故障控制恢复。
Swift 代码被编译和优化,以充分利用现代硬件。语法和标准库是基于指导原则设计的,编写代码的明显方式也应该是最好的。安全性和速度的结合使得 Swift 成为从 “Helloworld” 到整个操作系统的绝佳选择。

View File

@ -12,7 +12,6 @@
当你用 Xcode 编译 Swift 3 的代码Swift 4 中大部分功能是可以使用的。也就是说,下面的功能仅仅是 Swift 4 的代码中可以使用:
* 字符串的子串操作返回的实例是 `Substring` 类型,不再是 `String` 类型。
* 在一些地方显式的添加 `@objc` 属性。
* 同一文件中一个类型的 extension 可以访问这个类型的 private 属性。

View File

@ -17,8 +17,7 @@
> 3.0.1 review: 2016-11-09
>
> 3.1 校对: [SketchK](https://github.com/SketchK) 2017-04-08
> 3.1 校对: [SketchK](https://github.com/SketchK) 2017-04-08
> 4.0
> 翻译+校对:[muhlenxi](https://github.com/muhlenxi) 2017-09-26
@ -522,7 +521,6 @@ let sideLength = optionalSquare?.sideLength
<a name="enumerations_and_structure"></a>
## 枚举和结构体
使用 `enum` 来创建一个枚举。就像类和其他所有命名类型一样,枚举可以包含方法。
```swift
@ -630,7 +628,6 @@ let threeOfSpadesDescription = threeOfSpades.simpleDescription()
> 练习:
> 给 `Card` 添加一个方法,创建一副完整的扑克牌并把每张牌的 rank 和 suit 对应起来。
<a name="protocols_and_extensions"></a>
## 协议和扩展

View File

@ -2,28 +2,28 @@
---
> 1.0
> 翻译:[成都老码团队翻译组-Arya](http://weibo.com/littlekok/)
> 校对:[成都老码团队翻译组-Oberyn](http://weibo.com/u/5241713117)
[changkun](http://changkun.us/about/)
>
> 1.1
> 1.0
> 翻译:[成都老码团队翻译组-Arya](http://weibo.com/littlekok/)
> 校对:[成都老码团队翻译组-Oberyn](http://weibo.com/u/5241713117)
[changkun](http://changkun.us/about/)
>
> 1.2
> 1.1
> 翻译:[成都老码团队翻译组-Arya](http://weibo.com/littlekok/)
> 校对:[成都老码团队翻译组-Oberyn](http://weibo.com/u/5241713117)
[changkun](http://changkun.us/about/)
>
> 2.0
>
> 1.2
> 翻译:[成都老码团队翻译组-Arya](http://weibo.com/littlekok/)
> 校对:[成都老码团队翻译组-Oberyn](http://weibo.com/u/5241713117)
[changkun](http://changkun.us/about/)
>
> 2.0
> 翻译+校对:[changkun](http://changkun.us/about/)
>
> 2.1
> 2.1
> 翻译+校对:[changkun](http://changkun.us/about/)
>
> 2.2
> 2.2
> 翻译+校对:[changkun](http://changkun.us/about/)
>
> 3.0
@ -80,7 +80,6 @@
</tbody>
</table>
<a name="swift_3_0"></a>
### Swift 3.0 更新
@ -124,7 +123,6 @@
<li>
更新<a href="https://developer.apple.com/library/prerelease/content/documentation/Swift/Conceptual/Swift_Programming_Language/Generics.html#//apple_ref/doc/uid/TP40014097-CH26-ID179">泛型</a>章节中<a href="https://developer.apple.com/library/prerelease/content/documentation/Swift/Conceptual/Swift_Programming_Language/Generics.html#//apple_ref/doc/uid/TP40014097-CH26-ID192">泛型 Where 语句</a>一节和<a href="https://developer.apple.com/library/prerelease/content/documentation/Swift/Conceptual/Swift_Programming_Language/GenericParametersAndArguments.html#//apple_ref/doc/uid/TP40014097-CH37-ID406">泛型形参和实参</a>章节,现在泛型的 where 语句写在一个声明的最后。
</li>
<li>
更新<a href="https://developer.apple.com/library/prerelease/content/documentation/Swift/Conceptual/Swift_Programming_Language/Closures.html#//apple_ref/doc/uid/TP40014097-CH11-ID546">逃逸闭包</a>一节,现在闭包默认为非逃逸的(noescaping)。
@ -453,7 +451,6 @@
</tbody>
</table>
<a name="swift_1_2"></a>
### Swift 1.2 更新
<a name="xcode6_3"></a>
@ -539,7 +536,6 @@
</tbody>
</table>
<a name="swift_1_1"></a>
### Swift 1.1 更新