From 603e4b444e6168ac549c63aa006431e7c52fba69 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 29 Mar 2018 22:54:37 -0700 Subject: [PATCH] doc: remove "if provided" for optional arguments Remove "if provided" when discussing arguments that are explicitly indicated to be optional and have default values. --- 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 ec500ceb96776b..42641f4b7ecd25 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 `string`. If provided, the `encoding` -parameter identifies the character encoding of `string`. +Creates a new `Buffer` containing `string`. 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 `string`. If provided, the `encoding` -parameter identifies the character encoding of `string`. +Creates a new `Buffer` containing `string`. The `encoding` parameter identifies +the character encoding of `string`. ```js const buf1 = Buffer.from('this is a tést');