Merge pull request #350 from randsu/master

Typo: strig => string
This commit is contained in:
Ilya Kantor 2018-01-14 20:09:02 +03:00 committed by GitHub
commit 527a9d2120
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,6 @@ do {
The loop `do..while` repeats while both checks are truthy:
1. The check for `num <= 100` -- that is, the entered value is still not greater than `100`.
2. The check `&& num` is false when `num` is `null` or a empty strig. Then the `while` loop stops too.
2. The check `&& num` is false when `num` is `null` or a empty string. Then the `while` loop stops too.
P.S. If `num` is `null` then `num <= 100` is `true`, so without the 2nd check the loop wouldn't stop if the user clicks CANCEL. Both checks are required.