summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJake Mingolla <jakemingolla@gmail.com>2018-09-17 15:46:04 -0400
committerAlex Early <alexander.early@gmail.com>2018-09-17 12:46:04 -0700
commit74adae1c02ced2141504a5e7938b63bee07ddc8d (patch)
tree344e0238f6c2d4a7d29815c1a0c9cdd646703221
parentdb49b8922b541d011d1e457b658ef8435539fdb4 (diff)
downloadasync-74adae1c02ced2141504a5e7938b63bee07ddc8d.tar.gz
Small typo :) (#1579)
-rw-r--r--intro.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/intro.md b/intro.md
index 1bc29e3..4402663 100644
--- a/intro.md
+++ b/intro.md
@@ -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
}