Skip to content

Commit

Permalink
Small typo :) (#1579)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemingolla authored and aearly committed Sep 17, 2018
1 parent db49b89 commit 74adae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intro.md
Expand Up @@ -126,7 +126,7 @@ Async accepts `async` functions wherever we accept a Node-style callback functio
```js
async.mapLimit(files, 10, async file => { // <- no callback!
const text = await util.promisify(fs.readFile)(dir + file, 'utf8')
const body = JSON.parse(text) // <- a parse error herre will be caught automatically
const body = JSON.parse(text) // <- a parse error here will be caught automatically
if (!(await checkValidity(body))) {
throw new Error(`${file} has invalid contents`) // <- this error will also be caught
}
Expand Down

0 comments on commit 74adae1

Please sign in to comment.