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.

PR-URL: #56720
Reviewed-By: Ulises Gascón <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Minwoo Jung <[email protected]>
  • Loading branch information
rmehner authored Jan 25, 2025
1 parent bade7a1 commit da1ca7d
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 da1ca7d

Please sign in to comment.