Skip to content

Commit

Permalink
Fix: 글자수 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
mediumorange committed Nov 1, 2023
1 parent 026f4ee commit 7eab699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/racingcar/exception/InputException.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package racingcar.exception
class InputException {
fun validateCarName(cars: List<String>) {
for(car in cars) {
require(car.length <= 5) {ErrorCode.CHARACTERS_NUMBER_EXCEEDED.message}
require(car.length < 5) {ErrorCode.CHARACTERS_NUMBER_EXCEEDED.message}
}
}

Expand Down

0 comments on commit 7eab699

Please sign in to comment.