From 052fe2c017591cbbd1cb22d626e5023c916462ac 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. This might trip people up when copying the code. --- 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