From a83d33810258772fde859d485698229dafaea6ed Mon Sep 17 00:00:00 2001 From: David Newman Date: Thu, 19 Dec 2019 09:33:52 -0500 Subject: [PATCH] lib: improve spelling and grammar in comment PR-URL: https://github.com/nodejs/node/pull/31026 Reviewed-By: Rich Trott Reviewed-By: Trivikram Kamat Reviewed-By: Luigi Pinca Reviewed-By: Gireesh Punathil --- lib/events.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/events.js b/lib/events.js index c91792cbfbda8a..6f3739c67f2a8f 100644 --- a/lib/events.js +++ b/lib/events.js @@ -145,8 +145,8 @@ EventEmitter.init = function(opts) { } this[kCapture] = Boolean(opts.captureRejections); } else { - // Assigning it directly a prototype lookup, as it slighly expensive - // and it sits in a very sensitive hot path. + // Assigning the kCapture property directly saves an expensive + // prototype lookup in a very sensitive hot path. this[kCapture] = EventEmitter.prototype[kCapture]; } };