Skip to content

Commit 216e7da

Browse files
TrottBethGriggs
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 1bda582 commit 216e7da

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
@@ -483,8 +483,8 @@ changes:
483483
* `string` {string} String to encode.
484484
* `encoding` {string} The encoding of `string`. **Default:** `'utf8'`.
485485

486-
Creates a new `Buffer` containing the given JavaScript string `string`. If
487-
provided, the `encoding` parameter identifies the character encoding of `string`.
486+
Creates a new `Buffer` containing `string`. If provided, the `encoding`
487+
parameter identifies the character encoding of `string`.
488488

489489
Examples:
490490

@@ -891,8 +891,8 @@ added: v5.10.0
891891
* `string` {string} A string to encode.
892892
* `encoding` {string} The encoding of `string`. **Default:** `'utf8'`.
893893

894-
Creates a new `Buffer` containing the given JavaScript string `string`. If
895-
provided, the `encoding` parameter identifies the character encoding of `string`.
894+
Creates a new `Buffer` containing `string`. If provided, the `encoding`
895+
parameter identifies the character encoding of `string`.
896896

897897
Examples:
898898

0 commit comments

Comments
 (0)