Skip to content
This repository has been archived by the owner on Aug 31, 2018. It is now read-only.

Commit

Permalink
doc: replace undocumented encoding aliases
Browse files Browse the repository at this point in the history
PR-URL: nodejs/node#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 addaleax committed Oct 26, 2017
1 parent d2c3dcb commit 91b3c9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/api/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ Example
const Socket = require('net').Socket;
const instance = new Socket();

instance.setEncoding('utf-8');
instance.setEncoding('utf8');
```

<a id="ERR_TLS_CERT_ALTNAME_INVALID"></a>
Expand Down
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 91b3c9d

Please sign in to comment.