We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f2b742 commit 04b2351Copy full SHA for 04b2351
swift-6-beta.docc/LanguageGuide/ControlFlow.md
@@ -10,8 +10,8 @@ Swift 提供了 `for`-`in` 循环,用来更简单地遍历数组(Array),
10
Swift 还提供了 `defer` 语句,用来包含离开当前代码块时要执行的代码。
11
12
Swift 的 `switch` 语句比许多类 C 语言要更加强大。
13
-case 还可以匹配很多不同的模式,包括范围匹配,元组(tuple)和特定类型匹配。 and casts to a specific type.
14
-`switch` 语句的 case 中匹配的值可以声明为临时常量或变量,在 case 作用域内使用,也可以配合 `where` 来描述更复杂的匹配条件。
+case 还可以匹配很多不同的模式,包括范围匹配,元组(tuple)和特定类型匹配。
+`switch` 语句的 `case` 中匹配的值可以声明为临时常量或变量以便在 `case` 作用域内使用,也可以配合 `where` 来描述更复杂的匹配条件。
15
16
## For-In 循环
17
0 commit comments