Skip to content

Commit 3412e1e

Browse files
ghkd1418raon0211
authored andcommitted
fix: wrong code example (#36)
1 parent 7fc97f0 commit 3412e1e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

code/examples/use-user.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function useServerTime() {
7575
```typescript
7676
/** 사용자 이름은 20자 미만이어야 해요. */
7777
function checkIsNameValid(name: string) {
78-
const isValid = name.length > 0 && name.length <= 20;
78+
const isValid = name.length > 0 && name.length < 20;
7979

8080
return isValid;
8181
}

en/code/examples/use-user.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The functions `checkIsNameValid` and `checkIsAgeValid` are both used to validate
7575
```typescript
7676
/** User names must be less than 20 characters. */
7777
function checkIsNameValid(name: string) {
78-
const isValid = name.length > 0 && name.length <= 20;
78+
const isValid = name.length > 0 && name.length < 20;
7979

8080
return isValid;
8181
}

0 commit comments

Comments
 (0)