Skip to content

Commit d50bdf0

Browse files
Fixed Typos
1 parent 855de65 commit d50bdf0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/concept/route.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,20 @@ new Elysia()
5555
## Path Parameters
5656
Path parameters can retrieve data from URL.
5757

58-
For example, getting an user id from path like many social media is when you need a path parameters.
58+
For example, getting a user id from path like many social media is when you need a path parameters.
5959

6060
```typescript
6161
new Elysia()
6262
.get('/id/:id', ({ params: { id } }) => getUserById(id))
6363
.listen(8080)
6464
```
6565

66-
Path parameters is a variable in a path.
66+
Path parameters are a variable in a path.
6767

68-
When the pattern match, the path you named will become available in `context.params`, and you can retrieve its value.
68+
When the pattern matches, the path you named will become available in `context.params`, and you can retrieve its value.
6969

7070
## Wildcard
71-
Sometime path parameters is not enough.
71+
Sometimes path parameters are not enough.
7272

7373
Matching anything after some pattern is required, and you can't define them all or its too redundant.
7474

0 commit comments

Comments
 (0)