Skip to content

Commit f4a9b13

Browse files
rmehneraduh95
authored andcommitted
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. 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]>
1 parent 83c56da commit f4a9b13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/util.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1966,7 +1966,7 @@ const errorMessage = styleText(
19661966
// Validate if process.stderr has TTY
19671967
{ stream: stderr },
19681968
);
1969-
console.error(successMessage);
1969+
console.error(errorMessage);
19701970
```
19711971
19721972
```cjs

0 commit comments

Comments
 (0)