Skip to content

Commit 052fe2c

Browse files
committed
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.
1 parent d978610 commit 052fe2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/util.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1972,7 +1972,7 @@ const errorMessage = styleText(
19721972
// Validate if process.stderr has TTY
19731973
{ stream: stderr },
19741974
);
1975-
console.error(successMessage);
1975+
console.error(errorMessage);
19761976
```
19771977
19781978
```cjs

0 commit comments

Comments
 (0)