summaryrefslogtreecommitdiff
path: root/doc/api/buffer.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/buffer.md')
-rw-r--r--doc/api/buffer.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/buffer.md b/doc/api/buffer.md
index 1e81762e98..ec500ceb96 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 the given JavaScript string `string`. If
-provided, the `encoding` parameter identifies the character encoding of `string`.
+Creates a new `Buffer` containing `string`. If provided, 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 the given JavaScript string `string`. If
-provided, the `encoding` parameter identifies the character encoding of `string`.
+Creates a new `Buffer` containing `string`. If provided, the `encoding`
+parameter identifies the character encoding of `string`.
```js
const buf1 = Buffer.from('this is a tést');