File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1585,11 +1585,11 @@ changes:
1585
1585
1586
1586
> Stability: 3 - Legacy: Use the WHATWG URL API instead.
1587
1587
1588
- * ` from` {string} The Base URL being resolved against .
1589
- * ` to` {string} The HREF URL being resolved .
1588
+ * ` from` {string} The base URL to use if ` to ` is a relative URL .
1589
+ * ` to` {string} The target URL to resolve .
1590
1590
1591
1591
The ` url.resolve()` method resolves a target URL relative to a base URL in a
1592
- manner similar to that of a Web browser resolving an anchor tag HREF .
1592
+ manner similar to that of a web browser resolving an anchor tag.
1593
1593
1594
1594
` ` ` js
1595
1595
const url = require('url');
@@ -1598,7 +1598,7 @@ url.resolve('http://example.com/', '/one'); // 'http://example.com/one'
1598
1598
url.resolve('http://example.com/one', '/two'); // 'http://example.com/two'
1599
1599
` ` `
1600
1600
1601
- You can achieve the same result using the WHATWG URL API :
1601
+ To achieve the same result using the WHATWG URL API :
1602
1602
1603
1603
` ` ` js
1604
1604
function resolve(from, to) {
You can’t perform that action at this time.
0 commit comments