From 4300fdbf01d12ef38950f100a2aaf9d41971c584 Mon Sep 17 00:00:00 2001 From: Robin Mehner Date: Thu, 23 Jan 2025 10:19:20 +0100 Subject: [PATCH] doc: fix typo in example code for util.styleText Code shows how to style `errorMessage`, but then only logs out `successMessage` twice. Might trip people up :) --- doc/api/util.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/util.md b/doc/api/util.md index 72a45b1cde8d11..958a49977e1a17 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -1972,7 +1972,7 @@ const errorMessage = styleText( // Validate if process.stderr has TTY { stream: stderr }, ); -console.error(successMessage); +console.error(errorMessage); ``` ```cjs