You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1.6/ja/book/loops.md
+16-15Lines changed: 16 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -9,12 +9,12 @@
9
9
10
10
<!-- The infinite `loop` is the simplest form of loop available in Rust. Using the keyword `loop`, Rust provides a way to loop indefinitely until some terminating statement is reached. Rust's infinite `loop`s look like this: -->
<!-- In this case, we can write the loop in a better way with `break`: -->
206
-
今回は、 `break`を使ってループを記述するのが良い方法です:
206
+
この例では、 `break`を使ってループを記述した方が良いでしょう:
207
207
208
208
```rust
209
209
letmutx=5;
@@ -218,7 +218,7 @@ loop {
218
218
```
219
219
220
220
<!-- We now loop forever with `loop` and use `break` to break out early. Issuing an explicit `return` statement will also serve to terminate the loop early. -->
221
-
ここでは `loop`による無限ループと`break` による早期脱出を使っています。
221
+
ここでは `loop`による永久ループと`break` による早期脱出を使っています。
222
222
明示的な `return` 文の発行でもループの早期終了になります。
223
223
224
224
<!-- `continue` is similar, but instead of ending the loop, goes to the next -->
@@ -245,8 +245,9 @@ for x in 0..10 {
245
245
<!-- `continue` statement applies to. This will only print when both `x` and `y` are -->
0 commit comments