From 828add3065fef6ba93f5617c308b8babccc70ea2 Mon Sep 17 00:00:00 2001 From: chvmvd <104971044+chvmvd@users.noreply.github.com> Date: Thu, 12 Oct 2023 17:50:53 +0900 Subject: [PATCH] =?UTF-8?q?Fix=20typo=20from=20=E3=80=8C`while`=E3=80=8D?= =?UTF-8?q?=20to=20=E3=80=8C`while`=20=E6=96=87=E3=80=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/1-trial-session/08-loop/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/1-trial-session/08-loop/index.md b/docs/1-trial-session/08-loop/index.md index a2135bc2a..fa3345bc0 100644 --- a/docs/1-trial-session/08-loop/index.md +++ b/docs/1-trial-session/08-loop/index.md @@ -125,7 +125,7 @@ for (初期化; 条件式; 更新式) { } ``` -`while` と構造が似ていますが、`条件式`のほかに`初期化`と`更新式`が加えられています。通常、繰り返しを扱うプログラムでは、`while` の例における変数 `i` のように、一番はじめに現在の繰り返し回数を表す変数を用意し、ループの終わりでその変数を更新します。 +`while` 文と構造が似ていますが、`条件式`のほかに`初期化`と`更新式`が加えられています。通常、繰り返しを扱うプログラムでは、`while` 文の例における変数 `i` のように、一番はじめに現在の繰り返し回数を表す変数を用意し、ループの終わりでその変数を更新します。 これらをより便利に記述できるのが `for` 文、というわけです。