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. This might
trip people up when copying the code.
  • Loading branch information
rmehner committed Jan 23, 2025
1 parent d978610 commit 052fe2c
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 052fe2c

Please sign in to comment.