diff --git a/doc/api/process.md b/doc/api/process.md index 4ef7605e8d8cf3..85e3bf5458a901 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -2028,7 +2028,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][].