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

Commit 91b3c9d

Browse files
vsemozhetbytaddaleax
authored andcommitted
doc: replace undocumented encoding aliases
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>
1 parent d2c3dcb commit 91b3c9d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/api/errors.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ Example
12241224
const Socket = require('net').Socket;
12251225
const instance = new Socket();
12261226

1227-
instance.setEncoding('utf-8');
1227+
instance.setEncoding('utf8');
12281228
```
12291229

12301230
<a id="ERR_TLS_CERT_ALTNAME_INVALID"></a>

doc/api/fs.md

+1-1
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)