Skip to content

Commit

Permalink
lib: fix typos
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bl-ue authored and richardlau committed Jul 20, 2021
1 parent 73e199d commit b0a1984
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/internal/modules/cjs/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ Module._resolveFilename = function(request, parent, isMain, options) {
}
}

// Try module self resoultion first
// Try module self resolution first
const parentPath = trySelfParentPath(parent);
const selfResolved = trySelf(parentPath, request);
if (selfResolved) {
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ function promisify(original) {

promisify.custom = kCustomPromisifiedSymbol;

// The build-in Array#join is slower in v8 6.0
// The built-in Array#join is slower in v8 6.0
function join(output, separator) {
let str = '';
if (output.length !== 0) {
Expand Down
4 changes: 2 additions & 2 deletions lib/internal/util/comparisons.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,9 +460,9 @@ function setEquiv(a, b, strict, memo) {
if (set === null) {
set = new Set();
}
// If the specified value doesn't exist in the second set its an not null
// If the specified value doesn't exist in the second set it's a non-null
// object (or non strict only: a not matching primitive) we'll need to go
// hunting for something thats deep-(strict-)equal to it. To make this
// hunting for something that's deep-(strict-)equal to it. To make this
// O(n log n) complexity we have to copy these values in a new set first.
set.add(val);
} else if (!b.has(val)) {
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/util/inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ inspect.colors = ObjectAssign(ObjectCreate(null), {
italic: [3, 23],
underline: [4, 24],
blink: [5, 25],
// Swap forground and background colors
// Swap foreground and background colors
inverse: [7, 27], // Alias: swapcolors, swapColors
hidden: [8, 28], // Alias: conceal
strikethrough: [9, 29], // Alias: strikeThrough, crossedout, crossedOut
Expand Down

0 comments on commit b0a1984

Please sign in to comment.