Skip to content

Commit

Permalink
Incorrect example in default text parser docs (#4448)
Browse files Browse the repository at this point in the history
  • Loading branch information
SaumyaBhushan committed Nov 29, 2022
1 parent df5d94f commit 204be5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Reference/Server.md
Expand Up @@ -1670,7 +1670,7 @@ information.
`fastify.defaultTextParser()` can be used to parse content as plain text.

```js
fastify.addContentTypeParser('text/json', { asString: true }, fastify.defaultTextParser())
fastify.addContentTypeParser('text/json', { asString: true }, fastify.defaultTextParser)
```

#### errorHandler
Expand Down

0 comments on commit 204be5f

Please sign in to comment.