Skip to content

Commit 3a3ae01

Browse files
Trotttargos
authored andcommitted
doc: do not identify string as "JavaScript string"
A parameter that is explicitly identified as a string does not need to be further specified in the text as a "JavaScript string". Remove the type altogether as it is indicated in the argument description. PR-URL: #19689 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Сковорода Никита Андреевич <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent d111037 commit 3a3ae01

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/buffer.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,8 @@ changes:
461461
* `string` {string} String to encode.
462462
* `encoding` {string} The encoding of `string`. **Default:** `'utf8'`
463463

464-
Creates a new `Buffer` containing the given JavaScript string `string`. If
465-
provided, the `encoding` parameter identifies the character encoding of `string`.
464+
Creates a new `Buffer` containing `string`. If provided, the `encoding`
465+
parameter identifies the character encoding of `string`.
466466

467467
```js
468468
const buf1 = new Buffer('this is a tést');
@@ -839,8 +839,8 @@ added: v5.10.0
839839
* `string` {string} A string to encode.
840840
* `encoding` {string} The encoding of `string`. **Default:** `'utf8'`
841841

842-
Creates a new `Buffer` containing the given JavaScript string `string`. If
843-
provided, the `encoding` parameter identifies the character encoding of `string`.
842+
Creates a new `Buffer` containing `string`. If provided, the `encoding`
843+
parameter identifies the character encoding of `string`.
844844

845845
```js
846846
const buf1 = Buffer.from('this is a tést');

0 commit comments

Comments
 (0)