Skip to content

Commit 02fc95d

Browse files
datatypevoidBethGriggs
authored andcommitted
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>
1 parent 07d195a commit 02fc95d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/events.js

Lines changed: 2 additions & 2 deletions
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)