Skip to content

Commit

Permalink
url: fix typo
Browse files Browse the repository at this point in the history
PR-URL: #53827
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
Kay-Yuan authored and marco-ippolito committed Aug 19, 2024
1 parent bff6995 commit 325eae0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,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
Expand All @@ -361,7 +361,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]}`),
Expand Down

0 comments on commit 325eae0

Please sign in to comment.