From 760cafa5ed35b654150324736db2dc1c3e739a08 Mon Sep 17 00:00:00 2001 From: Howie Zhao Date: Fri, 6 Aug 2021 00:17:32 +0800 Subject: [PATCH] doc: fix typo in `url.md` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/39666 Reviewed-By: James M Snell Reviewed-By: Antoine du Hamel Reviewed-By: Luigi Pinca Reviewed-By: Tobias Nießen --- doc/api/url.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/url.md b/doc/api/url.md index 23443b030a90f7..3ebe12b68e8b19 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -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:',