From b7d609c2f8a80ebf5641d717efa0ceccc48caab2 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Sat, 21 Oct 2017 23:13:09 +0300 Subject: [PATCH] doc: replace undocumented encoding aliases Backport-PR-URL: https://github.com/nodejs/node/pull/16421 PR-URL: https://github.com/nodejs/node/pull/16368 Reviewed-By: Joyee Cheung Reviewed-By: Luigi Pinca Reviewed-By: Bryan English --- doc/api/fs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index e61d1d11ea12d5..689f38af3c4758 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -954,7 +954,7 @@ If the file previously was shorter than `len` bytes, it is extended, and the extended part is filled with null bytes ('\0'). For example, ```js -console.log(fs.readFileSync('temp.txt', 'utf-8')); +console.log(fs.readFileSync('temp.txt', 'utf8')); // Prints: Node.js // get the file descriptor of the file to be truncated