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 <joyeec9h3@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Bryan English <bryan@bryanenglish.com>
  • Loading branch information
vsemozhetbyt authored and MylesBorins committed Oct 24, 2017
1 parent 8f08d66 commit ff25ca7
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 @@ -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
Expand Down

0 comments on commit ff25ca7

Please sign in to comment.