diff options
author | Mark Tiedemann <www.marktiedemann@gmail.com> | 2018-04-27 20:21:38 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-04-27 21:09:19 +0300 |
commit | 6c6f31392c37d9e7ad6e2587514e19d8c5d344ee (patch) | |
tree | d8bb4459c66d42c40db83d419975438f734460fe /doc/api/url.md | |
parent | a1fc52884b98acab3d3f0b66c3b5ac9eb0728b8b (diff) |
doc: remove superfluous URL require statement
Since v10.0.0, the `URL` class is available on the global object, so
using a `require` statement to access it is no longer necessary.
PR-URL: https://github.com/nodejs/node/pull/20364
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Diffstat (limited to 'doc/api/url.md')
-rw-r--r-- | doc/api/url.md | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/doc/api/url.md b/doc/api/url.md index 35a72da8ee6..3740dd79011 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -132,8 +132,6 @@ and a `base` is provided, it is advised to validate that the `origin` of the `URL` object is what is expected. ```js -const { URL } = require('url'); - let myURL = new URL('http://anotherExample.org/', 'https://example.org/'); // http://anotherexample.org/ |