Skip to content
Permalink
Browse files

lib: improve spelling and grammar in comment

PR-URL: #31026
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
  • Loading branch information
datatypevoid authored and BridgeAR committed Dec 19, 2019
1 parent e5980a1 commit a83d33810258772fde859d485698229dafaea6ed
Showing with 2 additions and 2 deletions.
  1. +2 −2 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];
}
};

0 comments on commit a83d338

Please sign in to comment.
You can’t perform that action at this time.