Skip to content

Commit

Permalink
Re-introduced correct syntax for code examples
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Mar 27, 2017
1 parent 09bcc42 commit 3641a50
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ module.exports = async (req, res) => {

#### API

##### buffer(req, { limit = '1mb', encoding = 'utf8' })
##### text(req, { limit = '1mb', encoding = 'utf8' })
##### json(req, { limit = '1mb', encoding = 'utf8' })
##### `buffer(req, { limit = '1mb', encoding = 'utf8' })`
##### `text(req, { limit = '1mb', encoding = 'utf8' })`
##### `json(req, { limit = '1mb', encoding = 'utf8' })`

- Buffers and parses the incoming body and returns it.
- Exposes an `async` function that can be run with `await`.
Expand All @@ -146,7 +146,7 @@ module.exports = async (req, res) => {

#### API

##### send(res, statusCode, data = null)
##### `send(res, statusCode, data = null)`

- Use `require('micro').send`.
- `statusCode` is a `Number` with the HTTP error code, and must always be supplied.
Expand Down

0 comments on commit 3641a50

Please sign in to comment.