From 4939899f10456e1668bc85324ad1bce49066f937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Thu, 12 May 2022 23:22:18 +0200 Subject: [PATCH] doc: use serial comma in util docs Refs: https://github.com/nodejs/node/pull/11321 Refs: https://github.com/nodejs/node/pull/17384 PR-URL: https://github.com/nodejs/node/pull/43063 Reviewed-By: Rich Trott Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Darshan Sen --- doc/api/util.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/util.md b/doc/api/util.md index 6c0404765a2..eb79edf4258 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -260,7 +260,7 @@ changes: was not a string. - version: v11.4.0 pr-url: https://github.com/nodejs/node/pull/23708 - description: The `%d`, `%f` and `%i` specifiers now support Symbols + description: The `%d`, `%f`, and `%i` specifiers now support Symbols properly. - version: v11.4.0 pr-url: https://github.com/nodejs/node/pull/24806 @@ -582,7 +582,7 @@ changes: * `showProxy` {boolean} If `true`, `Proxy` inspection includes the [`target` and `handler`][] objects. **Default:** `false`. * `maxArrayLength` {integer} Specifies the maximum number of `Array`, - [`TypedArray`][], [`WeakMap`][] and [`WeakSet`][] elements to include when + [`TypedArray`][], [`WeakMap`][], and [`WeakSet`][] elements to include when formatting. Set to `null` or `Infinity` to show all elements. Set to `0` or negative to show no elements. **Default:** `100`. * `maxStringLength` {integer} Specifies the maximum number of characters to @@ -1275,7 +1275,7 @@ changes: * `ignoreBOM` {boolean} When `true`, the `TextDecoder` will include the byte order mark in the decoded result. When `false`, the byte order mark will be removed from the output. This option is only used when `encoding` is - `'utf-8'`, `'utf-16be'` or `'utf-16le'`. **Default:** `false`. + `'utf-8'`, `'utf-16be'`, or `'utf-16le'`. **Default:** `false`. Creates a new `TextDecoder` instance. The `encoding` may specify one of the supported encodings or an alias. @@ -1284,7 +1284,7 @@ The `TextDecoder` class is also available on the global object. ### `textDecoder.decode([input[, options]])` -* `input` {ArrayBuffer|DataView|TypedArray} An `ArrayBuffer`, `DataView` or +* `input` {ArrayBuffer|DataView|TypedArray} An `ArrayBuffer`, `DataView`, or `TypedArray` instance containing the encoded data. * `options` {Object} * `stream` {boolean} `true` if additional chunks of data are expected.