Skip to content

Commit

Permalink
doc: replace undocumented encoding aliases
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
vsemozhetbyt authored and MylesBorins committed Nov 28, 2017
1 parent 2cbf75d commit b7d609c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b7d609c

Please sign in to comment.