Skip to content

Commit dcdb646

Browse files
tniessenevanlucas
authored andcommitted
lib: fix spelling in comments
PR-URL: #18018 Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Weijia Wang <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]>
1 parent 5fccb6e commit dcdb646

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/internal/async_hooks.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const { async_hook_fields, async_id_fields } = async_wrap;
3333
// of a fatal exception this stack is emptied after calling each hook's after()
3434
// callback.
3535
const { pushAsyncIds: pushAsyncIds_, popAsyncIds: popAsyncIds_ } = async_wrap;
36-
// For performance reasons, only track Proimses when a hook is enabled.
36+
// For performance reasons, only track Promises when a hook is enabled.
3737
const { enablePromiseHook, disablePromiseHook } = async_wrap;
3838
// Properties in active_hooks are used to keep track of the set of hooks being
3939
// executed in case another hook is enabled/disabled. The new set of hooks is

lib/internal/http2/core.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1549,7 +1549,7 @@ class Http2Stream extends Duplex {
15491549
return !!(this[kState].flags & STREAM_FLAGS_HEADERS_SENT);
15501550
}
15511551

1552-
// true if the Http2Stream was aborted abornomally.
1552+
// true if the Http2Stream was aborted abnormally.
15531553
get aborted() {
15541554
return !!(this[kState].flags & STREAM_FLAGS_ABORTED);
15551555
}
@@ -2380,7 +2380,7 @@ Object.defineProperty(Http2Session.prototype, 'setTimeout', setTimeout);
23802380

23812381

23822382
// When the socket emits an error, destroy the associated Http2Session and
2383-
// foward it the same error.
2383+
// forward it the same error.
23842384
function socketOnError(error) {
23852385
const session = this[kSession];
23862386
if (session !== undefined) {

0 commit comments

Comments
 (0)