Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion code/examples/use-user.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function useServerTime() {
```typescript
/** 사용자 이름은 20자 미만이어야 해요. */
function checkIsNameValid(name: string) {
const isValid = name.length > 0 && name.length <= 20;
const isValid = name.length > 0 && name.length < 20;

return isValid;
}
Expand Down
2 changes: 1 addition & 1 deletion en/code/examples/use-user.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ The functions `checkIsNameValid` and `checkIsAgeValid` are both used to validate
```typescript
/** User names must be less than 20 characters. */
function checkIsNameValid(name: string) {
const isValid = name.length > 0 && name.length <= 20;
const isValid = name.length > 0 && name.length < 20;

return isValid;
}
Expand Down