Skip to content

Commit 2265236

Browse files
tniessentargos
authored andcommitted
doc: use serial comma in assert docs
Refs: #11321 Refs: #17384 PR-URL: #43154 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
1 parent 8c74137 commit 2265236

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/assert.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ benefit in catching a rejection and then rejecting it again. Instead, consider
958958
adding a comment next to the specific code path that should not reject and keep
959959
error messages as expressive as possible.
960960

961-
If specified, `error` can be a [`Class`][], [`RegExp`][] or a validation
961+
If specified, `error` can be a [`Class`][], [`RegExp`][], or a validation
962962
function. See [`assert.throws()`][] for more details.
963963

964964
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
10401040
different type, or if the `error` parameter is undefined, the error is
10411041
propagated back to the caller.
10421042

1043-
If specified, `error` can be a [`Class`][], [`RegExp`][] or a validation
1043+
If specified, `error` can be a [`Class`][], [`RegExp`][], or a validation
10441044
function. See [`assert.throws()`][] for more details.
10451045

10461046
The following, for instance, will throw the [`TypeError`][] because there is no

0 commit comments

Comments
 (0)