Skip to content

Commit 047b0d3

Browse files
committed
📘 doc: grammar
1 parent 4928337 commit 047b0d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const app = new Elysia()
8484
.patch(
8585
'/user/age',
8686
({ body, error }) => {
87-
if(body.age <= 18)
87+
if(body.age < 18)
8888
return error(400)
8989

9090
return body
@@ -113,7 +113,7 @@ const app = new Elysia()
113113
.patch(
114114
'/user/age',
115115
({ body, error }) => {
116-
if(body.age <= 18)
116+
if(body.age < 18)
117117
return error(400)
118118

119119
return body

0 commit comments

Comments
 (0)