Skip to content

Commit b7d609c

Browse files
vsemozhetbytMylesBorins
authored andcommitted
doc: replace undocumented encoding aliases
Backport-PR-URL: #16421 PR-URL: #16368 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Bryan English <bryan@bryanenglish.com>
1 parent 2cbf75d commit b7d609c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/fs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ If the file previously was shorter than `len` bytes, it is extended, and the
954954
extended part is filled with null bytes ('\0'). For example,
955955

956956
```js
957-
console.log(fs.readFileSync('temp.txt', 'utf-8'));
957+
console.log(fs.readFileSync('temp.txt', 'utf8'));
958958
// Prints: Node.js
959959

960960
// get the file descriptor of the file to be truncated

0 commit comments

Comments
 (0)