Skip to content

Commit c3721fc

Browse files
Trottruyadorno
authored andcommitted
doc: remove empty block from console.timeEnd() example
PR-URL: #41831 Refs: https://eslint.org/docs/rules/no-empty Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
1 parent ad32ad6 commit c3721fc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/console.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -469,10 +469,10 @@ Stops a timer that was previously started by calling [`console.time()`][] and
469469
prints the result to `stdout`:
470470

471471
```js
472-
console.time('100-elements');
473-
for (let i = 0; i < 100; i++) {}
474-
console.timeEnd('100-elements');
475-
// prints 100-elements: 225.438ms
472+
console.time('bunch-of-stuff');
473+
// Do a bunch of stuff.
474+
console.timeEnd('bunch-of-stuff');
475+
// Prints: bunch-of-stuff: 225.438ms
476476
```
477477

478478
### `console.timeLog([label][, ...data])`

0 commit comments

Comments
 (0)