From b0a1984d4dd098c1bf3bf4b920821e9f3ace95ca Mon Sep 17 00:00:00 2001 From: bl-ue <54780737+bl-ue@users.noreply.github.com> Date: Mon, 31 May 2021 08:50:41 -0400 Subject: [PATCH] lib: fix typos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/38846 Reviewed-By: Rich Trott Reviewed-By: Michaƫl Zasso Reviewed-By: Darshan Sen Reviewed-By: Richard Lau Reviewed-By: Colin Ihrig Reviewed-By: Khaidi Chu Reviewed-By: James M Snell Reviewed-By: Michael Dawson --- lib/internal/modules/cjs/loader.js | 2 +- lib/internal/util.js | 2 +- lib/internal/util/comparisons.js | 4 ++-- lib/internal/util/inspect.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/internal/modules/cjs/loader.js b/lib/internal/modules/cjs/loader.js index 7929df8ae8479a..7c006042a0c04d 100644 --- a/lib/internal/modules/cjs/loader.js +++ b/lib/internal/modules/cjs/loader.js @@ -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) { diff --git a/lib/internal/util.js b/lib/internal/util.js index 68aade2d03d991..c28f51e40c9f61 100644 --- a/lib/internal/util.js +++ b/lib/internal/util.js @@ -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) { diff --git a/lib/internal/util/comparisons.js b/lib/internal/util/comparisons.js index 8d5692777c94e2..51b70af9d83965 100644 --- a/lib/internal/util/comparisons.js +++ b/lib/internal/util/comparisons.js @@ -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)) { diff --git a/lib/internal/util/inspect.js b/lib/internal/util/inspect.js index 961e21b7aa6db4..14b4e54e4f4157 100644 --- a/lib/internal/util/inspect.js +++ b/lib/internal/util/inspect.js @@ -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