From 642f6831df1017d8e3de1061a449f02602c235e5 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 29 Mar 2018 22:50:52 -0700 Subject: [PATCH] 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. --- doc/api/buffer.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/buffer.md b/doc/api/buffer.md index 99c9c79d71d74d..cbc261561df964 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -464,8 +464,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'); @@ -850,8 +850,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');