summaryrefslogtreecommitdiff
path: root/doc/api/url.md
diff options
context:
space:
mode:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-04-21 17:38:31 +0300
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-04-25 00:06:00 +0300
commite2c3e4727d5899a709f5c421e128a4af2ef626f3 (patch)
treeda562d9848f3b66dddd2f244972a5cbc672fda20 /doc/api/url.md
parentb6d293d2158c66a3edbb86c0c43b4c51af3484f7 (diff)
downloadandroid-node-v8-e2c3e4727d5899a709f5c421e128a4af2ef626f3.tar.gz
android-node-v8-e2c3e4727d5899a709f5c421e128a4af2ef626f3.tar.bz2
android-node-v8-e2c3e4727d5899a709f5c421e128a4af2ef626f3.zip
doc: conform to rules for eslint-plugin-markdown
PR-URL: https://github.com/nodejs/node/pull/12563 Refs: https://github.com/nodejs/node/pull/12557#issuecomment-296015032 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Diffstat (limited to 'doc/api/url.md')
-rw-r--r--doc/api/url.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/url.md b/doc/api/url.md
index 14fcf267ce..7a0d56c01f 100644
--- a/doc/api/url.md
+++ b/doc/api/url.md
@@ -289,9 +289,9 @@ manner similar to that of a Web browser resolving an anchor tag HREF.
For example:
```js
-url.resolve('/one/two/three', 'four') // '/one/two/four'
-url.resolve('http://example.com/', '/one') // 'http://example.com/one'
-url.resolve('http://example.com/one', '/two') // 'http://example.com/two'
+url.resolve('/one/two/three', 'four'); // '/one/two/four'
+url.resolve('http://example.com/', '/one'); // 'http://example.com/one'
+url.resolve('http://example.com/one', '/two'); // 'http://example.com/two'
```
## Escaped Characters
@@ -460,7 +460,7 @@ const myURL = new URL('https://example.org/foo');
console.log(myURL.href);
// Prints https://example.org/foo
-myURL.href = 'https://example.com/bar'
+myURL.href = 'https://example.com/bar';
// Prints https://example.com/bar
```