Skip to content

Commit

Permalink
lib: improve spelling and grammar in comment
Browse files Browse the repository at this point in the history
PR-URL: #31026
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
  • Loading branch information
datatypevoid authored and targos committed Jan 14, 2020
1 parent b6c815c commit 4198d9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
};
Expand Down

0 comments on commit 4198d9a

Please sign in to comment.