From 6bebfbd602ffddeaa6870e24121c925060190165 Mon Sep 17 00:00:00 2001 From: Jason Cooke Date: Wed, 3 Jul 2019 10:18:18 +1200 Subject: [PATCH] docs: fix typos --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3945b98..dc0df3c 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ var toRun = 10 // then you can perform work in parallel for (var i = 0; i < toRun; i++) { cc.enqueue({}, function(err, r) { - if (err) console.log("an error occured:", err); + if (err) console.log("an error occurred:", err); else console.log("it's nice:", r); if (--toRun === 0) cc.exit(); }); @@ -91,7 +91,7 @@ var cc = new require('compute-cluster')({ ### Event: 'error' -An error event will be emited in exceptional circumstances. Like if a child crashes. +An error event will be emitted in exceptional circumstances. Like if a child crashes. Catch error events like this: ``` js