Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2022-02-03 08:42:19 +0300
committerNode.js GitHub Bot <github-bot@iojs.org>2022-02-05 15:58:28 +0300
commit8997bd8af279b532bbf61960ee0b8607cc2c5707 (patch)
treeb755fefad8b409b1887d6818d2aa2a7e8d2ff0ac /doc
parent776d0b4e62b7112fe4c1a05a3eabe8fe2f53edc9 (diff)
doc: remove empty block from console.timeEnd() example
PR-URL: https://github.com/nodejs/node/pull/41831 Refs: https://eslint.org/docs/rules/no-empty Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/console.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/console.md b/doc/api/console.md
index 5c8b4ecc64d..bd890e20a79 100644
--- a/doc/api/console.md
+++ b/doc/api/console.md
@@ -469,10 +469,10 @@ Stops a timer that was previously started by calling [`console.time()`][] and
prints the result to `stdout`:
```js
-console.time('100-elements');
-for (let i = 0; i < 100; i++) {}
-console.timeEnd('100-elements');
-// prints 100-elements: 225.438ms
+console.time('bunch-of-stuff');
+// Do a bunch of stuff.
+console.timeEnd('bunch-of-stuff');
+// Prints: bunch-of-stuff: 225.438ms
```
### `console.timeLog([label][, ...data])`