diff options
author | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-10-21 23:13:09 +0300 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2017-11-28 13:10:44 +0900 |
commit | b7d609c2f8a80ebf5641d717efa0ceccc48caab2 (patch) | |
tree | 902d2342c626796b8f4c7c647dc864fb42ebbe9e /doc | |
parent | 2cbf75da7eba1842c4f2995f926a58db47220b54 (diff) | |
download | node-new-b7d609c2f8a80ebf5641d717efa0ceccc48caab2.tar.gz |
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>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/fs.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/fs.md b/doc/api/fs.md index e61d1d11ea..689f38af3c 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 |