From cd48ee71d936f7650fc122aa873e6dfa5c726af9 Mon Sep 17 00:00:00 2001 From: Derevianchenko Maksym <32910350+maks-white@users.noreply.github.com> Date: Sat, 5 Jun 2021 18:44:28 +0300 Subject: [PATCH] doc: fixed typo in process.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaced params in writeFileSync function in proper way. PR-URL: https://github.com/nodejs/node/pull/38941 Reviewed-By: Michaƫl Zasso Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: Darshan Sen Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Harshitha K P Reviewed-By: Zijian Liu --- doc/api/process.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/process.md b/doc/api/process.md index 8f363640fc9675..6eaf5b511323c9 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -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][].