From 74adae1c02ced2141504a5e7938b63bee07ddc8d Mon Sep 17 00:00:00 2001 From: Jake Mingolla Date: Mon, 17 Sep 2018 15:46:04 -0400 Subject: [PATCH] Small typo :) (#1579) --- intro.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intro.md b/intro.md index 1bc29e3bf..44026630e 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 }