Skip to content

Commit 4198d9a

Browse files
datatypevoidtargos
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 b6c815c commit 4198d9a

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
@@ -146,8 +146,8 @@ EventEmitter.init = function(opts) {
146146
}
147147
this[kCapture] = Boolean(opts.captureRejections);
148148
} else {
149-
// Assigning it directly a prototype lookup, as it slighly expensive
150-
// and it sits in a very sensitive hot path.
149+
// Assigning the kCapture property directly saves an expensive
150+
// prototype lookup in a very sensitive hot path.
151151
this[kCapture] = EventEmitter.prototype[kCapture];
152152
}
153153
};

0 commit comments

Comments
 (0)