diff --git a/doc/api/util.md b/doc/api/util.md index 405b38e032587f..19b41c7dcc9d4a 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -1964,7 +1964,7 @@ const errorMessage = styleText( // Validate if process.stderr has TTY { stream: stderr }, ); -console.error(successMessage); +console.error(errorMessage); ``` ```cjs