From fd1581ecaa5955fb63aed6d0c54a7f95f4a770f8 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 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 7fb7bd9061a72f..1723b1b45dc870 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -1284,7 +1284,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