From f928b61d09cd044474fd9ea9be41722738a633d8 Mon Sep 17 00:00:00 2001 From: Wang Yang Date: Tue, 30 Aug 2016 15:58:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AF=AD=E8=A8=80=E5=8F=82?= =?UTF-8?q?=E8=80=83-=E8=AF=AD=E5=8F=A5-guard=E8=AF=AD=E5=8F=A5=E7=9A=84?= =?UTF-8?q?=E7=BF=BB=E8=AF=91=20(#637)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/chapter3/10_Statements.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/chapter3/10_Statements.md b/source/chapter3/10_Statements.md index f623b6a6..0b7fd6a8 100755 --- a/source/chapter3/10_Statements.md +++ b/source/chapter3/10_Statements.md @@ -233,8 +233,8 @@ guard 条件 else { 语句 } ``` - -`guard` 语句中条件的结果必须符合 `BooleanType` 协议,而且条件语句可以使用可选绑定,请参阅 [可选绑定](../chapter2/01_The_Basics.md#optional_binding)。 + +`guard` 语句中条件的结果必须符合 `BooleanType` 协议。另外,条件也可以是一条可选绑定,请参阅 [可选绑定](../chapter2/01_The_Basics.html#optional_binding)。 在 `guard` 语句中进行可选绑定的常量或者变量,其可用范围从声明开始直到作用域结束。 @@ -249,7 +249,7 @@ guard 条件 else { > guard 语句语法 -> *guard 语句* → **guard** [*条件子句*](#condition-clause) **else** [*代码块*](05_Declarations.md#code-block) +> *guard 语句* → **guard** [*条件子句*](#condition-clause) **else** [*代码块*](05_Declarations.html#code-block) ### Switch 语句 @@ -663,3 +663,5 @@ if #available(平台名称 版本, ..., *) { > *平台版本* → [十进制数字](02_Lexical_Structure.md#decimal-digits) > *平台版本* → [十进制数字](02_Lexical_Structure.md#decimal-digits) **.** [十进制数字](02_Lexical_Structure.md#decimal-digits) > *平台版本* → [十进制数字](02_Lexical_Structure.md#decimal-digits) **.** [十进制数字](02_Lexical_Structure.md#decimal-digits) **.** [十进制数字](02_Lexical_Structure.md#decimal-digits) + +