diff --git a/source/chapter1/01_swift.md b/source/chapter1/01_swift.md index 16313cbc..1b5d9928 100755 --- a/source/chapter1/01_swift.md +++ b/source/chapter1/01_swift.md @@ -1,6 +1,6 @@ -# 关于 Swift ------------------ - +# 关于 Swift(About Swift) +----------------- + > 1.0 > 翻译:[numbbbbb](https://github.com/numbbbbb) > 校对:[yeahdongcn](https://github.com/yeahdongcn) diff --git a/source/chapter1/02_a_swift_tour.md b/source/chapter1/02_a_swift_tour.md index 93a58f5a..4d5362ae 100755 --- a/source/chapter1/02_a_swift_tour.md +++ b/source/chapter1/02_a_swift_tour.md @@ -1,4 +1,4 @@ -# Swift 初见 +# Swift 初见(A Swift Tour) --- diff --git a/source/chapter2/01_The_Basics.md b/source/chapter2/01_The_Basics.md index 8d5a2ee7..e834b49c 100755 --- a/source/chapter2/01_The_Basics.md +++ b/source/chapter2/01_The_Basics.md @@ -1,6 +1,6 @@ -# 基础部分 ------------------ - +# 基础部分(The Basics) +----------------- + > 1.0 > 翻译:[numbbbbb](https://github.com/numbbbbb), [lyuka](https://github.com/lyuka), [JaySurplus](https://github.com/JaySurplus) > 校对:[lslxdx](https://github.com/lslxdx) @@ -631,11 +631,11 @@ if let constantName = someOptional { 你可以像上面这样使用可选绑定来重写`possibleNumber`这个例子: ```swift -if let actualNumber = Int(possibleNumber) { - print("\'\(possibleNumber)\' has an integer value of \(actualNumber)") -} else { - print("\'\(possibleNumber)\' could not be converted to an integer") -} +if let actualNumber = Int(possibleNumber) { + print("\'\(possibleNumber)\' has an integer value of \(actualNumber)") +} else { + print("\'\(possibleNumber)\' could not be converted to an integer") +} // 输出 "'123' has an integer value of 123" ``` diff --git a/source/chapter2/02_Basic_Operators.md b/source/chapter2/02_Basic_Operators.md index 28874ae3..9e0f872e 100755 --- a/source/chapter2/02_Basic_Operators.md +++ b/source/chapter2/02_Basic_Operators.md @@ -1,6 +1,6 @@ -# 基本运算符 ------------------ - +# 基本运算符(Basic Operators) +----------------- + > 1.0 > 翻译:[XieLingWang](https://github.com/xielingwang) > 校对:[EvilCome](https://github.com/Evilcome) diff --git a/source/chapter2/03_Strings_and_Characters.md b/source/chapter2/03_Strings_and_Characters.md index 7b780c20..6a46bb8b 100755 --- a/source/chapter2/03_Strings_and_Characters.md +++ b/source/chapter2/03_Strings_and_Characters.md @@ -184,7 +184,7 @@ let message = "\(multiplier) times 2.5 is \(Double(multiplier) * 2.5)" // message 是 "3 times 2.5 is 7.5" ``` -在上面的例子中,`multiplier`作为`\(multiplier)`被插入到一个字符串字面量中。 +在上面的例子中,`multiplier`作为`\(multiplier)`被插入到一个字符串常量量中。 当创建字符串执行插值计算时此占位符会被替换为`multiplier`实际的值。 `multiplier`的值也作为字符串中后面表达式的一部分。 diff --git a/source/chapter2/05_Control_Flow.md b/source/chapter2/05_Control_Flow.md index c189334b..3a368de0 100755 --- a/source/chapter2/05_Control_Flow.md +++ b/source/chapter2/05_Control_Flow.md @@ -1,4 +1,4 @@ -# 控制流 +# 控制流(Control Flow) ----------------- > 1.0 diff --git a/source/chapter2/09_Classes_and_Structures.md b/source/chapter2/09_Classes_and_Structures.md index e330c7c9..74257884 100755 --- a/source/chapter2/09_Classes_and_Structures.md +++ b/source/chapter2/09_Classes_and_Structures.md @@ -1,4 +1,4 @@ -# 类和结构体 +# 类和结构体(Classes and Structures) > 1.0 > 翻译:[JaySurplus](https://github.com/JaySurplus) diff --git a/source/chapter2/16_Automatic_Reference_Counting.md b/source/chapter2/16_Automatic_Reference_Counting.md index 8af3ee7e..bb697029 100755 --- a/source/chapter2/16_Automatic_Reference_Counting.md +++ b/source/chapter2/16_Automatic_Reference_Counting.md @@ -1,6 +1,6 @@ -# 自动引用计数 ------------------ - +# 自动引用计数(Automatic Reference Counting) +----------------- + > 1.0 > 翻译:[TimothyYe](https://github.com/TimothyYe) > 校对:[Hawstein](https://github.com/Hawstein) diff --git a/source/chapter2/17_Optional_Chaining.md b/source/chapter2/17_Optional_Chaining.md index 2fb32213..43ee5426 100755 --- a/source/chapter2/17_Optional_Chaining.md +++ b/source/chapter2/17_Optional_Chaining.md @@ -1,6 +1,6 @@ -# 可空链式调用 - ------------------ +# 可空链式调用(Optional Chaining) + +----------------- > 1.0 > 翻译:[Jasonbroker](https://github.com/Jasonbroker) diff --git a/source/chapter2/18_Error_Handling.md b/source/chapter2/18_Error_Handling.md index 02c61bde..f2c7c768 100644 --- a/source/chapter2/18_Error_Handling.md +++ b/source/chapter2/18_Error_Handling.md @@ -1,5 +1,4 @@ - -# 错误处理 +# 错误处理(Error Handling) ----------------- > 2.0 diff --git a/source/chapter2/20_Nested_Types.md b/source/chapter2/20_Nested_Types.md index 33f72c5d..cec975a3 100755 --- a/source/chapter2/20_Nested_Types.md +++ b/source/chapter2/20_Nested_Types.md @@ -1,6 +1,6 @@ -# 嵌套类型 ------------------ - +# 嵌套类型(Nested Types) +----------------- + > 1.0 > 翻译:[Lin-H](https://github.com/Lin-H) > 校对:[shinyzhu](https://github.com/shinyzhu) diff --git a/source/chapter2/22_Protocols.md b/source/chapter2/22_Protocols.md index 7ead37b1..ae8f74b0 100644 --- a/source/chapter2/22_Protocols.md +++ b/source/chapter2/22_Protocols.md @@ -1,4 +1,4 @@ -# 协议 +# 协议(Protocols) ----------------- > 1.0 diff --git a/source/chapter2/23_Generics.md b/source/chapter2/23_Generics.md index c462abc5..2d34fe26 100644 --- a/source/chapter2/23_Generics.md +++ b/source/chapter2/23_Generics.md @@ -1,4 +1,4 @@ -# 泛型 +# 泛型(Generics) ------ diff --git a/source/chapter2/24_Access_Control.md b/source/chapter2/24_Access_Control.md index e27bcfc9..0e13cec3 100644 --- a/source/chapter2/24_Access_Control.md +++ b/source/chapter2/24_Access_Control.md @@ -1,4 +1,4 @@ -# 访问控制 +# 访问控制(Access Control) ------------------ > 1.0 diff --git a/source/chapter2/25_Advanced_Operators.md b/source/chapter2/25_Advanced_Operators.md index cabbcb71..e556b045 100644 --- a/source/chapter2/25_Advanced_Operators.md +++ b/source/chapter2/25_Advanced_Operators.md @@ -1,4 +1,4 @@ -# 高级运算符 +# 高级运算符(Advanced Operators) ----------------- > 1.0 diff --git a/source/chapter3/01_About_the_Language_Reference.md b/source/chapter3/01_About_the_Language_Reference.md index 2cab43d6..0a6e6bfd 100755 --- a/source/chapter3/01_About_the_Language_Reference.md +++ b/source/chapter3/01_About_the_Language_Reference.md @@ -1,4 +1,4 @@ -# 关于语言附注 +# 关于语言参考(About the Language Reference) ----------------- > 1.0 diff --git a/source/chapter3/02_Lexical_Structure.md b/source/chapter3/02_Lexical_Structure.md index 4e1fa307..c2acd335 100755 --- a/source/chapter3/02_Lexical_Structure.md +++ b/source/chapter3/02_Lexical_Structure.md @@ -1,4 +1,4 @@ -# 词法结构 +# 词法结构(Lexical Structure) ----------------- > 1.0 diff --git a/source/chapter3/05_Declarations.md b/source/chapter3/05_Declarations.md index a2ee9325..541dbef4 100755 --- a/source/chapter3/05_Declarations.md +++ b/source/chapter3/05_Declarations.md @@ -1,7 +1,7 @@ -# 声明 ------------------ - +# 声明(Declarations) +----------------- + > 1.0 > 翻译:[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) diff --git a/source/chapter3/06_Attributes.md b/source/chapter3/06_Attributes.md index 48688dc4..aa81dcd4 100755 --- a/source/chapter3/06_Attributes.md +++ b/source/chapter3/06_Attributes.md @@ -1,6 +1,6 @@ -# 特性 ------------------ - +# 特性(Attributes) +----------------- + > 1.0 > 翻译:[Hawstein](https://github.com/Hawstein) > 校对:[numbbbbb](https://github.com/numbbbbb), [stanzhai](https://github.com/stanzhai) diff --git a/source/chapter3/08_Generic_Parameters_and_Arguments.md b/source/chapter3/08_Generic_Parameters_and_Arguments.md index 3cb794df..fc4657f8 100755 --- a/source/chapter3/08_Generic_Parameters_and_Arguments.md +++ b/source/chapter3/08_Generic_Parameters_and_Arguments.md @@ -1,6 +1,6 @@ -# 泛型参数 ---------- - +# 泛型参数(Generic Parameters and Arguments) +--------- + > 1.0 > 翻译:[fd5788](https://github.com/fd5788) > 校对:[yankuangshi](https://github.com/yankuangshi), [stanzhai](https://github.com/stanzhai) diff --git a/source/chapter3/09_Summary_of_the_Grammar.md b/source/chapter3/09_Summary_of_the_Grammar.md index 5af7d45d..79988361 100755 --- a/source/chapter3/09_Summary_of_the_Grammar.md +++ b/source/chapter3/09_Summary_of_the_Grammar.md @@ -1,6 +1,6 @@ -# 语法总结 ------ - +# 语法总结(Summary of the Grammar) +----- + > 1.0 > 翻译:[stanzhai](https://github.com/stanzhai) > 校对:[xielingwang](https://github.com/xielingwang) diff --git a/source/chapter3/10_Statements.md b/source/chapter3/10_Statements.md index c2f1e00f..5aff0508 100755 --- a/source/chapter3/10_Statements.md +++ b/source/chapter3/10_Statements.md @@ -1,7 +1,7 @@ -# 语句 ------------------ - +# 语句(Statements) +----------------- + > 1.0 > 翻译:[coverxit](https://github.com/coverxit) > 校对:[numbbbbb](https://github.com/numbbbbb), [coverxit](https://github.com/coverxit), [stanzhai](https://github.com/stanzhai),