Skip to content

Commit bcb8321

Browse files
authored
fix: typo in v5 migration docs (fastify#5995)
1 parent 4755f4b commit bcb8321

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/Guides/Migration-Guide-V5.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ or turn it into a function
472472
473473
```js
474474
// v5
475-
fastify.decorateRequest('myObject', () => { hello: 'world' });
475+
fastify.decorateRequest('myObject', () => ({ hello: 'world' }));
476476
```
477477
478478
or as a getter
@@ -720,4 +720,3 @@ contributing to those that are capable of accepting sponsorships.
720720
| voxpelli | [❤️ sponsor](https://github.com/sponsors/voxpelli) | fastify |
721721
| weixinwu | | fastify-cli |
722722
| zetaraku | | fastify-cli |
723-

0 commit comments

Comments
 (0)