Skip to content

Commit

Permalink
doc: fix typo in url.md
Browse files Browse the repository at this point in the history
PR-URL: #39666
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
  • Loading branch information
howiezhao authored and danielleadams committed Aug 16, 2021
1 parent 975edf5 commit 760cafa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/url.md
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,7 @@ expected by the [`http.request()`][] and [`https.request()`][] APIs.
import { urlToHttpOptions } from 'url';
const myURL = new URL('https://a:b@測試?abc#foo');

console.log(urlToHttpOptions(myUrl));
console.log(urlToHttpOptions(myURL));
/**
{
protocol: 'https:',
Expand Down

0 comments on commit 760cafa

Please sign in to comment.