From e2c3e4727d5899a709f5c421e128a4af2ef626f3 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Fri, 21 Apr 2017 17:38:31 +0300 Subject: 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 Reviewed-By: James M Snell Reviewed-By: Timothy Gu Reviewed-By: Gibson Fahnestock Reviewed-By: Yuta Hiroto --- doc/api/url.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/api/url.md') 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 ``` -- cgit v1.2.3