diff options
author | Jake Mingolla <jakemingolla@gmail.com> | 2018-09-17 15:46:04 -0400 |
---|---|---|
committer | Alex Early <alexander.early@gmail.com> | 2018-09-17 12:46:04 -0700 |
commit | 74adae1c02ced2141504a5e7938b63bee07ddc8d (patch) | |
tree | 344e0238f6c2d4a7d29815c1a0c9cdd646703221 | |
parent | db49b8922b541d011d1e457b658ef8435539fdb4 (diff) | |
download | async-74adae1c02ced2141504a5e7938b63bee07ddc8d.tar.gz |
Small typo :) (#1579)
-rw-r--r-- | intro.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 } |