mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2024-11-14 04:41:49 +08:00
Merge pull request #553 from Annlix/main
Fixed some errors in ch03-05-control-flow
This commit is contained in:
commit
e1215882de
@ -283,7 +283,7 @@ fn main() {
|
||||
}
|
||||
```
|
||||
|
||||
外层循环有一个标签 `counting_ up`,它将从 0 数到 2。没有标签的内部循环从 10 向下数到 9。第一个没有指定标签的 `break` 将只退出内层循环。`break'counting_up;` 语句将退出外层循环。这个代码打印:
|
||||
外层循环有一个标签 `counting_up`,它将从 0 数到 2。没有标签的内部循环从 10 向下数到 9。第一个没有指定标签的 `break` 将只退出内层循环。`break 'counting_up;` 语句将退出外层循环。这个代码打印:
|
||||
|
||||
```console
|
||||
$ cargo run
|
||||
|
Loading…
Reference in New Issue
Block a user