Skip to content

Commit 5218fe8

Browse files
maks-dertargos
authored andcommitted
doc: fixed typo in process.md
Replaced params in writeFileSync function in proper way. PR-URL: #38941 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Harshitha K P <harshitha014@gmail.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
1 parent e82111f commit 5218fe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/process.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2028,7 +2028,7 @@ console.log(data.header.nodejsVersion);
20282028

20292029
// Similar to process.report.writeReport()
20302030
const fs = require('fs');
2031-
fs.writeFileSync(util.inspect(data), 'my-report.log', 'utf8');
2031+
fs.writeFileSync('my-report.log', util.inspect(data), 'utf8');
20322032
```
20332033

20342034
Additional documentation is available in the [report documentation][].

0 commit comments

Comments
 (0)