Skip to content

Commit a3160b7

Browse files
committed
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: nodejs#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 52a9f42 commit a3160b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/buffer.md

Lines changed: 4 additions & 4 deletions
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');
@@ -847,8 +847,8 @@ added: v5.10.0
847847
* `string` {string} A string to encode.
848848
* `encoding` {string} The encoding of `string`. **Default:** `'utf8'`
849849

850-
Creates a new `Buffer` containing the given JavaScript string `string`. If
851-
provided, the `encoding` parameter identifies the character encoding of `string`.
850+
Creates a new `Buffer` containing `string`. If provided, the `encoding`
851+
parameter identifies the character encoding of `string`.
852852

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

0 commit comments

Comments
 (0)