mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
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:
1 parent
8f08d6653d
commit
ff25ca70b2
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user