Skip to content

Commit fecfe7e

Browse files
committed
Grammar: Fix grammar for readability and clarity
1 parent 079f3ce commit fecfe7e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/concept/plugin.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ const app = new Elysia()
3333
.listen(8080)
3434
```
3535

36-
Plugin can be registered by using `use` method.
36+
Plugins can be registered by using `use` method.
3737

38-
Registering a plugin will combine types between plugin and current instance, and the scope of hooks and schema get merged as well.
38+
Registering a plugin will combine types between the plugin and current instance, and the scope of hooks and schema get merged as well.
3939

4040
## Separate file
41-
Using plugin pattern, you can define decouple your logic into a separate file.
41+
42+
Using the plugin pattern, you can define and decouple your logic into a separate file.
4243

4344
```ts
4445
// plugin.ts
@@ -64,11 +65,11 @@ import { plugin } from './plugin'
6465
const app = new Elysia().use(plugin).listen(8080)
6566
```
6667

67-
Functional callback will allow user to access main instance values like routes schema, store.
68+
Functional callback will allow user to access main instance values like routes, schema, store, etc.
6869

6970
## Config
7071

71-
You can customize plugin by creating function to return callback which accepts Elysia.
72+
You can customize a plugin by creating function to return callback which accepts Elysia.
7273

7374
```typescript
7475
import { Elysia } from 'elysia'

0 commit comments

Comments
 (0)