Skip to content

Commit 08ad2f6

Browse files
bl-uedanielleadams
authored andcommitted
lib: fix typos
PR-URL: #38846 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Khaidi Chu <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent f25cd4f commit 08ad2f6

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

lib/internal/modules/cjs/loader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ Module._resolveFilename = function(request, parent, isMain, options) {
913913
}
914914
}
915915

916-
// Try module self resoultion first
916+
// Try module self resolution first
917917
const parentPath = trySelfParentPath(parent);
918918
const selfResolved = trySelf(parentPath, request);
919919
if (selfResolved) {

lib/internal/util.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ function promisify(original) {
349349

350350
promisify.custom = kCustomPromisifiedSymbol;
351351

352-
// The build-in Array#join is slower in v8 6.0
352+
// The built-in Array#join is slower in v8 6.0
353353
function join(output, separator) {
354354
let str = '';
355355
if (output.length !== 0) {

lib/internal/util/comparisons.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -427,9 +427,9 @@ function setEquiv(a, b, strict, memo) {
427427
if (set === null) {
428428
set = new SafeSet();
429429
}
430-
// If the specified value doesn't exist in the second set its an not null
430+
// If the specified value doesn't exist in the second set it's a non-null
431431
// object (or non strict only: a not matching primitive) we'll need to go
432-
// hunting for something thats deep-(strict-)equal to it. To make this
432+
// hunting for something that's deep-(strict-)equal to it. To make this
433433
// O(n log n) complexity we have to copy these values in a new set first.
434434
set.add(val);
435435
} else if (!b.has(val)) {

lib/internal/util/inspect.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ inspect.colors = ObjectAssign(ObjectCreate(null), {
361361
italic: [3, 23],
362362
underline: [4, 24],
363363
blink: [5, 25],
364-
// Swap forground and background colors
364+
// Swap foreground and background colors
365365
inverse: [7, 27], // Alias: swapcolors, swapColors
366366
hidden: [8, 28], // Alias: conceal
367367
strikethrough: [9, 29], // Alias: strikeThrough, crossedout, crossedOut

0 commit comments

Comments
 (0)