Skip to content

Commit

Permalink
doc: replace undocumented encoding aliases
Browse files Browse the repository at this point in the history
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 committed Oct 22, 2017
1 parent e07e708 commit 93d1135
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 93d1135

Please sign in to comment.