diff --git a/doc/api/buffer.md b/doc/api/buffer.md index ec500ceb96776b..42641f4b7ecd25 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -461,8 +461,8 @@ changes: * `string` {string} String to encode. * `encoding` {string} The encoding of `string`. **Default:** `'utf8'` -Creates a new `Buffer` containing `string`. If provided, the `encoding` -parameter identifies the character encoding of `string`. +Creates a new `Buffer` containing `string`. The `encoding` parameter identifies +the character encoding of `string`. ```js const buf1 = new Buffer('this is a tést'); @@ -847,8 +847,8 @@ added: v5.10.0 * `string` {string} A string to encode. * `encoding` {string} The encoding of `string`. **Default:** `'utf8'` -Creates a new `Buffer` containing `string`. If provided, the `encoding` -parameter identifies the character encoding of `string`. +Creates a new `Buffer` containing `string`. The `encoding` parameter identifies +the character encoding of `string`. ```js const buf1 = Buffer.from('this is a tést');