Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-10-21 23:13:09 +0300
committerMyles Borins <mylesborins@google.com>2017-10-24 07:06:35 +0300
commitff25ca70b258a0ef1dccdfee3302a727ed51ee21 (patch)
tree078435d239d5d49c65c1b007017ffad65c86869f /doc
parent8f08d6653d85a354013ae0e8950029668cb4608d (diff)
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.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/fs.md b/doc/api/fs.md
index 7fb7bd9061a..1723b1b45dc 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