添加英文标题
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
# 关于 Swift
|
# 关于 Swift(About Swift)
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
> 1.0
|
> 1.0
|
||||||
> 翻译:[numbbbbb](https://github.com/numbbbbb)
|
> 翻译:[numbbbbb](https://github.com/numbbbbb)
|
||||||
> 校对:[yeahdongcn](https://github.com/yeahdongcn)
|
> 校对:[yeahdongcn](https://github.com/yeahdongcn)
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
# Swift 初见
|
# Swift 初见(A Swift Tour)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
# 基础部分
|
# 基础部分(The Basics)
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
> 1.0
|
> 1.0
|
||||||
> 翻译:[numbbbbb](https://github.com/numbbbbb), [lyuka](https://github.com/lyuka), [JaySurplus](https://github.com/JaySurplus)
|
> 翻译:[numbbbbb](https://github.com/numbbbbb), [lyuka](https://github.com/lyuka), [JaySurplus](https://github.com/JaySurplus)
|
||||||
> 校对:[lslxdx](https://github.com/lslxdx)
|
> 校对:[lslxdx](https://github.com/lslxdx)
|
||||||
@ -631,11 +631,11 @@ if let constantName = someOptional {
|
|||||||
你可以像上面这样使用可选绑定来重写`possibleNumber`这个例子:
|
你可以像上面这样使用可选绑定来重写`possibleNumber`这个例子:
|
||||||
|
|
||||||
```swift
|
```swift
|
||||||
if let actualNumber = Int(possibleNumber) {
|
if let actualNumber = Int(possibleNumber) {
|
||||||
print("\'\(possibleNumber)\' has an integer value of \(actualNumber)")
|
print("\'\(possibleNumber)\' has an integer value of \(actualNumber)")
|
||||||
} else {
|
} else {
|
||||||
print("\'\(possibleNumber)\' could not be converted to an integer")
|
print("\'\(possibleNumber)\' could not be converted to an integer")
|
||||||
}
|
}
|
||||||
// 输出 "'123' has an integer value of 123"
|
// 输出 "'123' has an integer value of 123"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
# 基本运算符
|
# 基本运算符(Basic Operators)
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
> 1.0
|
> 1.0
|
||||||
> 翻译:[XieLingWang](https://github.com/xielingwang)
|
> 翻译:[XieLingWang](https://github.com/xielingwang)
|
||||||
> 校对:[EvilCome](https://github.com/Evilcome)
|
> 校对:[EvilCome](https://github.com/Evilcome)
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
# 控制流
|
# 控制流(Control Flow)
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
> 1.0
|
> 1.0
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
# 类和结构体
|
# 类和结构体(Classes and Structures)
|
||||||
|
|
||||||
> 1.0
|
> 1.0
|
||||||
> 翻译:[JaySurplus](https://github.com/JaySurplus)
|
> 翻译:[JaySurplus](https://github.com/JaySurplus)
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
# 自动引用计数
|
# 自动引用计数(Automatic Reference Counting)
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
> 1.0
|
> 1.0
|
||||||
> 翻译:[TimothyYe](https://github.com/TimothyYe)
|
> 翻译:[TimothyYe](https://github.com/TimothyYe)
|
||||||
> 校对:[Hawstein](https://github.com/Hawstein)
|
> 校对:[Hawstein](https://github.com/Hawstein)
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
# 可空链式调用
|
# 可空链式调用(Optional Chaining)
|
||||||
|
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
> 1.0
|
> 1.0
|
||||||
> 翻译:[Jasonbroker](https://github.com/Jasonbroker)
|
> 翻译:[Jasonbroker](https://github.com/Jasonbroker)
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
|
# 错误处理(Error Handling)
|
||||||
# 错误处理
|
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
> 2.0
|
> 2.0
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
# 嵌套类型
|
# 嵌套类型(Nested Types)
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
> 1.0
|
> 1.0
|
||||||
> 翻译:[Lin-H](https://github.com/Lin-H)
|
> 翻译:[Lin-H](https://github.com/Lin-H)
|
||||||
> 校对:[shinyzhu](https://github.com/shinyzhu)
|
> 校对:[shinyzhu](https://github.com/shinyzhu)
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
# 协议
|
# 协议(Protocols)
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
> 1.0
|
> 1.0
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
# 泛型
|
# 泛型(Generics)
|
||||||
|
|
||||||
------
|
------
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
# 访问控制
|
# 访问控制(Access Control)
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
> 1.0
|
> 1.0
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
# 高级运算符
|
# 高级运算符(Advanced Operators)
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
> 1.0
|
> 1.0
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
# 词法结构
|
# 词法结构(Lexical Structure)
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
> 1.0
|
> 1.0
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<a name="declarations"></a>
|
<a name="declarations"></a>
|
||||||
# 声明
|
# 声明(Declarations)
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
> 1.0
|
> 1.0
|
||||||
> 翻译:[marsprince](https://github.com/marsprince) [Lenhoon](https://github.com/marsprince)[(微博)](http://www.weibo.com/lenhoon)
|
> 翻译:[marsprince](https://github.com/marsprince) [Lenhoon](https://github.com/marsprince)[(微博)](http://www.weibo.com/lenhoon)
|
||||||
> 校对:[numbbbbb](https://github.com/numbbbbb), [stanzhai](https://github.com/stanzhai)
|
> 校对:[numbbbbb](https://github.com/numbbbbb), [stanzhai](https://github.com/stanzhai)
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
# 特性
|
# 特性(Attributes)
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
> 1.0
|
> 1.0
|
||||||
> 翻译:[Hawstein](https://github.com/Hawstein)
|
> 翻译:[Hawstein](https://github.com/Hawstein)
|
||||||
> 校对:[numbbbbb](https://github.com/numbbbbb), [stanzhai](https://github.com/stanzhai)
|
> 校对:[numbbbbb](https://github.com/numbbbbb), [stanzhai](https://github.com/stanzhai)
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
# 泛型参数
|
# 泛型参数(Generic Parameters and Arguments)
|
||||||
---------
|
---------
|
||||||
|
|
||||||
> 1.0
|
> 1.0
|
||||||
> 翻译:[fd5788](https://github.com/fd5788)
|
> 翻译:[fd5788](https://github.com/fd5788)
|
||||||
> 校对:[yankuangshi](https://github.com/yankuangshi), [stanzhai](https://github.com/stanzhai)
|
> 校对:[yankuangshi](https://github.com/yankuangshi), [stanzhai](https://github.com/stanzhai)
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
# 语法总结
|
# 语法总结(Summary of the Grammar)
|
||||||
-----
|
-----
|
||||||
|
|
||||||
> 1.0
|
> 1.0
|
||||||
> 翻译:[stanzhai](https://github.com/stanzhai)
|
> 翻译:[stanzhai](https://github.com/stanzhai)
|
||||||
> 校对:[xielingwang](https://github.com/xielingwang)
|
> 校对:[xielingwang](https://github.com/xielingwang)
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<a name="statement_statements"></a>
|
<a name="statement_statements"></a>
|
||||||
# 语句
|
# 语句(Statements)
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
> 1.0
|
> 1.0
|
||||||
> 翻译:[coverxit](https://github.com/coverxit)
|
> 翻译:[coverxit](https://github.com/coverxit)
|
||||||
> 校对:[numbbbbb](https://github.com/numbbbbb), [coverxit](https://github.com/coverxit), [stanzhai](https://github.com/stanzhai),
|
> 校对:[numbbbbb](https://github.com/numbbbbb), [coverxit](https://github.com/coverxit), [stanzhai](https://github.com/stanzhai),
|
||||||
|
|||||||
Reference in New Issue
Block a user