From 7637f291be4be351234f9a2c9ed3380b8d5c1f56 Mon Sep 17 00:00:00 2001 From: KAYYY <34876651+Kay-Yuan@users.noreply.github.com> Date: Mon, 15 Jul 2024 00:48:19 +0930 Subject: [PATCH] url: fix typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/53827 Reviewed-By: Michaƫl Zasso Reviewed-By: Antoine du Hamel Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- lib/internal/url.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/internal/url.js b/lib/internal/url.js index ed5644fe59515b..fc5e8ac8874804 100644 --- a/lib/internal/url.js +++ b/lib/internal/url.js @@ -349,7 +349,7 @@ class URLSearchParams { throw new ERR_ARG_NOT_ITERABLE('Query pairs'); } - // The following implementationd differs from the URL specification: + // The following implementation differs from the URL specification: // Sequences must first be converted from ECMAScript objects before // and operations are done on them, and the operation of converting // the sequences would first exhaust the iterators. If the iterator @@ -367,7 +367,7 @@ class URLSearchParams { if (pair.length !== 2) { throw new ERR_INVALID_TUPLE('Each query pair', '[name, value]'); } - // Append (innerSequence[0], innerSequence[1]) to querys list. + // Append (innerSequence[0], innerSequence[1]) to query's list. ArrayPrototypePush( this.#searchParams, StringPrototypeToWellFormed(`${pair[0]}`),