Skip to content

Commit 04b2351

Browse files
committed
fix: review
1 parent 0f2b742 commit 04b2351

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swift-6-beta.docc/LanguageGuide/ControlFlow.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Swift 提供了 `for`-`in` 循环,用来更简单地遍历数组(Array),
1010
Swift 还提供了 `defer` 语句,用来包含离开当前代码块时要执行的代码。
1111

1212
Swift 的 `switch` 语句比许多类 C 语言要更加强大。
13-
case 还可以匹配很多不同的模式,包括范围匹配,元组(tuple)和特定类型匹配。 and casts to a specific type.
14-
`switch` 语句的 case 中匹配的值可以声明为临时常量或变量,在 case 作用域内使用,也可以配合 `where` 来描述更复杂的匹配条件。
13+
case 还可以匹配很多不同的模式,包括范围匹配,元组(tuple)和特定类型匹配。
14+
`switch` 语句的 `case` 中匹配的值可以声明为临时常量或变量以便在 `case` 作用域内使用,也可以配合 `where` 来描述更复杂的匹配条件。
1515

1616
## For-In 循环
1717

0 commit comments

Comments
 (0)