Skip to content

Commit b0a1984

Browse files
bl-uerichardlau
authored andcommitted
lib: fix typos
PR-URL: #38846 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
1 parent 73e199d commit b0a1984

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
@@ -874,7 +874,7 @@ Module._resolveFilename = function(request, parent, isMain, options) {
874874
}
875875
}
876876

877-
// Try module self resoultion first
877+
// Try module self resolution first
878878
const parentPath = trySelfParentPath(parent);
879879
const selfResolved = trySelf(parentPath, request);
880880
if (selfResolved) {

lib/internal/util.js

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

335335
promisify.custom = kCustomPromisifiedSymbol;
336336

337-
// The build-in Array#join is slower in v8 6.0
337+
// The built-in Array#join is slower in v8 6.0
338338
function join(output, separator) {
339339
let str = '';
340340
if (output.length !== 0) {

lib/internal/util/comparisons.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,9 @@ function setEquiv(a, b, strict, memo) {
460460
if (set === null) {
461461
set = new Set();
462462
}
463-
// If the specified value doesn't exist in the second set its an not null
463+
// If the specified value doesn't exist in the second set it's a non-null
464464
// object (or non strict only: a not matching primitive) we'll need to go
465-
// hunting for something thats deep-(strict-)equal to it. To make this
465+
// hunting for something that's deep-(strict-)equal to it. To make this
466466
// O(n log n) complexity we have to copy these values in a new set first.
467467
set.add(val);
468468
} else if (!b.has(val)) {

lib/internal/util/inspect.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ inspect.colors = ObjectAssign(ObjectCreate(null), {
335335
italic: [3, 23],
336336
underline: [4, 24],
337337
blink: [5, 25],
338-
// Swap forground and background colors
338+
// Swap foreground and background colors
339339
inverse: [7, 27], // Alias: swapcolors, swapColors
340340
hidden: [8, 28], // Alias: conceal
341341
strikethrough: [9, 29], // Alias: strikeThrough, crossedout, crossedOut

0 commit comments

Comments
 (0)