diff --git a/doc/api/process.md b/doc/api/process.md index 9cbcd0d5ac69eb..07c212d273054c 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][].