From c3b5b34777aa8ef2f02fdf58c467febb44e87c76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Fri, 20 May 2022 11:33:16 +0200 Subject: [PATCH] doc: use serial comma in assert 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/43154 Reviewed-By: Rich Trott Reviewed-By: Mohammed Keyvanzadeh --- doc/api/assert.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/assert.md b/doc/api/assert.md index bf50fb2daadc6a..a01b82a930bf4e 100644 --- a/doc/api/assert.md +++ b/doc/api/assert.md @@ -958,7 +958,7 @@ benefit in catching a rejection and then rejecting it again. Instead, consider adding a comment next to the specific code path that should not reject and keep error messages as expressive as possible. -If specified, `error` can be a [`Class`][], [`RegExp`][] or a validation +If specified, `error` can be a [`Class`][], [`RegExp`][], or a validation function. See [`assert.throws()`][] for more details. Besides the async nature to await the completion behaves identically to @@ -1040,7 +1040,7 @@ parameter, then an [`AssertionError`][] is thrown. If the error is of a different type, or if the `error` parameter is undefined, the error is propagated back to the caller. -If specified, `error` can be a [`Class`][], [`RegExp`][] or a validation +If specified, `error` can be a [`Class`][], [`RegExp`][], or a validation function. See [`assert.throws()`][] for more details. The following, for instance, will throw the [`TypeError`][] because there is no