From 4198d9ad9aed9dc8984a9e7dc6916553e01f194c 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 a218829eec91bd..e6ad7e93490ca5 100644 --- a/lib/events.js +++ b/lib/events.js @@ -146,8 +146,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]; } };