doc: fix typo in url.md

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Howie Zhao 2021-08-06 00:17:32 +08:00 committed by Antoine du Hamel
parent 712059a232
commit 8bfb4b9815

View File

@ -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:',