Skip to content

Commit

Permalink
Merge pull request #454 from ut-code/fix-typo-in-loop-answer
Browse files Browse the repository at this point in the history
Fix typo in answer of loop
  • Loading branch information
chvmvd authored Oct 15, 2023
2 parents 6b2b3f6 + a1a573c commit 1d94c0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/1-trial-session/08-loop/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ if (n <= 1) {
isPrime = false;
}

for (let i = 2; i < integer; i += 1) {
for (let i = 2; i < n; i += 1) {
if (n % i === 0) {
isPrime = false;
}
Expand Down

0 comments on commit 1d94c0d

Please sign in to comment.