From c3721fcf9a70a5788efeade2170d0adb491c3193 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 2 Feb 2022 21:42:19 -0800 Subject: [PATCH] doc: remove empty block from console.timeEnd() example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/41831 Refs: https://eslint.org/docs/rules/no-empty Reviewed-By: Colin Ihrig Reviewed-By: Tobias Nießen Reviewed-By: Antoine du Hamel --- doc/api/console.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/console.md b/doc/api/console.md index 5c8b4ecc64d9b4..bd890e20a79a59 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])`