Skip to content

Commit 828add3

Browse files
committed
Fix typo from 「while」 to 「while 文」
1 parent e1fd3ea commit 828add3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/1-trial-session/08-loop/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ for (初期化; 条件式; 更新式) {
125125
}
126126
```
127127

128-
`while` と構造が似ていますが`条件式`のほかに`初期化``更新式`が加えられています。通常、繰り返しを扱うプログラムでは、`while` の例における変数 `i` のように、一番はじめに現在の繰り返し回数を表す変数を用意し、ループの終わりでその変数を更新します。
128+
`while` 文と構造が似ていますが`条件式`のほかに`初期化``更新式`が加えられています。通常、繰り返しを扱うプログラムでは、`while` 文の例における変数 `i` のように、一番はじめに現在の繰り返し回数を表す変数を用意し、ループの終わりでその変数を更新します。
129129

130130
これらをより便利に記述できるのが `for` 文、というわけです。
131131

0 commit comments

Comments
 (0)