url: fix typo

PR-URL: https://github.com/nodejs/node/pull/53827
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
KAYYY 2024-07-15 00:48:19 +09:30 committed by GitHub
parent cae5831ab4
commit 59fde99db8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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]}`),