mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -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
2cbf75da7e
commit
b7d609c2f8
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user