Skip to content

Commit 425c9a4

Browse files
committed
fix: change lower bound value from 0 to 1 during input validation
1 parent 4b58de0 commit 425c9a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func main() {
4545
}
4646
attempts++
4747
chances--
48-
if userInputNumber < 0 || userInputNumber > 100 {
48+
if userInputNumber < 1 || userInputNumber > 100 {
4949
fmt.Println("Invalid choice, Enter a number between 1 and 100")
5050
continue
5151
}

0 commit comments

Comments
 (0)