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 <joyeec9h3@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Bryan English <bryan@bryanenglish.com>
This commit is contained in:
Vse Mozhet Byt authored and Myles Borins committed 2017-11-28 13:10:44 +09:00
1 parent 2cbf75da7e
commit b7d609c2f8
1 file changed
+1 -1
+1 -1
View File
@@ -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