From 5218fe86d12d1b22fc9de39394b02ac7b6aa71e1 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 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][].