Skip to content

Commit a1a573c

Browse files
committed
Fix typo in answer of loop
1 parent 36a465b commit a1a573c

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
@@ -256,7 +256,7 @@ if (n <= 1) {
256256
isPrime = false;
257257
}
258258

259-
for (let i = 2; i < integer; i += 1) {
259+
for (let i = 2; i < n; i += 1) {
260260
if (n % i === 0) {
261261
isPrime = false;
262262
}

0 commit comments

Comments
 (0)