Skip to content

Commit ff25ca7

Browse files
vsemozhetbytMylesBorins
authored andcommitted
doc: replace undocumented encoding aliases
Backport-PR-URL: #16421 PR-URL: #16368 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Bryan English <[email protected]>
1 parent 8f08d66 commit ff25ca7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/fs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,7 @@ If the file previously was shorter than `len` bytes, it is extended, and the
12841284
extended part is filled with null bytes ('\0'). For example,
12851285

12861286
```js
1287-
console.log(fs.readFileSync('temp.txt', 'utf-8'));
1287+
console.log(fs.readFileSync('temp.txt', 'utf8'));
12881288
// Prints: Node.js
12891289

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

0 commit comments

Comments
 (0)