Skip to content

Commit a83d338

Browse files
datatypevoidBridgeAR
authored andcommitted
lib: improve spelling and grammar in comment
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]>
1 parent e5980a1 commit a83d338

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/events.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ EventEmitter.init = function(opts) {
145145
}
146146
this[kCapture] = Boolean(opts.captureRejections);
147147
} else {
148-
// Assigning it directly a prototype lookup, as it slighly expensive
149-
// and it sits in a very sensitive hot path.
148+
// Assigning the kCapture property directly saves an expensive
149+
// prototype lookup in a very sensitive hot path.
150150
this[kCapture] = EventEmitter.prototype[kCapture];
151151
}
152152
};

0 commit comments

Comments
 (0)