Skip to content

Commit

Permalink
doc: fix typo in example code for util.styleText
Browse files Browse the repository at this point in the history
Code shows how to style `errorMessage`, but then only logs out `successMessage` twice. Might trip people up :)
  • Loading branch information
rmehner authored Jan 23, 2025
1 parent d978610 commit 4300fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/util.md
Original file line number Diff line number Diff line change
Expand Up @@ -1972,7 +1972,7 @@ const errorMessage = styleText(
// Validate if process.stderr has TTY
{ stream: stderr },
);
console.error(successMessage);
console.error(errorMessage);
```
```cjs
Expand Down

0 comments on commit 4300fdb

Please sign in to comment.