summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/api/url.md2
1 files changed, 0 insertions, 2 deletions
diff --git a/doc/api/url.md b/doc/api/url.md
index 35a72da8ee..3740dd7901 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/