diff options
author | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-04-21 17:38:31 +0300 |
---|---|---|
committer | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-04-25 00:06:00 +0300 |
commit | e2c3e4727d5899a709f5c421e128a4af2ef626f3 (patch) | |
tree | da562d9848f3b66dddd2f244972a5cbc672fda20 /doc/api/console.md | |
parent | b6d293d2158c66a3edbb86c0c43b4c51af3484f7 (diff) | |
download | android-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/console.md')
-rw-r--r-- | doc/api/console.md | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/doc/api/console.md b/doc/api/console.md index a368e17913..900a7aa9c1 100644 --- a/doc/api/console.md +++ b/doc/api/console.md @@ -142,7 +142,7 @@ the default behavior of `console` in Node.js. // new impl for assert without monkey-patching. const myConsole = Object.create(console, { assert: { - value: function assert(assertion, message, ...args) { + value(assertion, message, ...args) { try { console.assert(assertion, message, ...args); } catch (err) { @@ -276,9 +276,7 @@ prints the result to `stdout`: ```js console.time('100-elements'); -for (let i = 0; i < 100; i++) { - ; -} +for (let i = 0; i < 100; i++) ; console.timeEnd('100-elements'); // prints 100-elements: 225.438ms ``` |