Skip to content

Commit

Permalink
docs(readme): replace use of deprecated variadic listen()
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Aug 5, 2022
1 parent 832b9ea commit 887bfc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fastify.get('/user/:id', function (req, reply) {
})
})

fastify.listen(3000, err => {
fastify.listen({ port: 3000 }, err => {
if (err) throw err
})
```
Expand Down

0 comments on commit 887bfc0

Please sign in to comment.