Skip to content

Commit 927c7e4

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 <ulisesgascongonzalez@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
1 parent 7bae51e commit 927c7e4

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
@@ -1964,7 +1964,7 @@ const errorMessage = styleText(
19641964
// Validate if process.stderr has TTY
19651965
{ stream: stderr },
19661966
);
1967-
console.error(successMessage);
1967+
console.error(errorMessage);
19681968
```
19691969
19701970
```cjs

0 commit comments

Comments
 (0)