doc: fixed typo in process.md

Replaced params in writeFileSync function in proper way.

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Derevianchenko Maksym 2021-06-05 18:44:28 +03:00 committed by Richard Lau
parent c99a09f05f
commit cd48ee71d9
No known key found for this signature in database
GPG Key ID: C43CEC45C17AB93C

View File

@ -1978,7 +1978,7 @@ console.log(data.header.nodejsVersion);
// Similar to process.report.writeReport()
const fs = require('fs');
fs.writeFileSync(util.inspect(data), 'my-report.log', 'utf8');
fs.writeFileSync('my-report.log', util.inspect(data), 'utf8');
```
Additional documentation is available in the [report documentation][].