Skip to content

Commit 8c1df7a

Browse files
bsnotecjihrig
authored andcommitted
doc: use correct signature for assert()
The message argument is optional for both assert() and assert.ok(). This commit makes message optional for assert(). PR-URL: nodejs/node-v0.x-archive#9003 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trevor Norris <trev.norris@gmail.com>
1 parent 0cff052 commit 8c1df7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/assert.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ access it with `require('assert')`.
99

1010
Throws an exception that displays the values for `actual` and `expected` separated by the provided operator.
1111

12-
## assert(value, message), assert.ok(value[, message])
12+
## assert(value[, message]), assert.ok(value[, message])
1313

1414
Tests if value is truthy, it is equivalent to `assert.equal(true, !!value, message);`
1515

0 commit comments

Comments
 (0)