Skip to content

Commit ba07699

Browse files
committed
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 e890344 commit ba07699

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/internal/async_hooks.js

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,7 +1556,7 @@ class Http2Stream extends Duplex {
15561556
return !!(this[kState].flags & STREAM_FLAGS_HEADERS_SENT);
15571557
}
15581558

1559-
// true if the Http2Stream was aborted abornomally.
1559+
// true if the Http2Stream was aborted abnormally.
15601560
get aborted() {
15611561
return !!(this[kState].flags & STREAM_FLAGS_ABORTED);
15621562
}
@@ -2392,7 +2392,7 @@ Object.defineProperty(Http2Session.prototype, 'setTimeout', setTimeout);
23922392

23932393

23942394
// When the socket emits an error, destroy the associated Http2Session and
2395-
// foward it the same error.
2395+
// forward it the same error.
23962396
function socketOnError(error) {
23972397
const session = this[kSession];
23982398
if (session !== undefined) {

0 commit comments

Comments
 (0)