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: https://github.com/joyent/node/pull/9003
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
pull/835/head
Andrei Sedoi 2015-01-09 19:55:32 +02:00 committed by cjihrig
parent 0cff0521c3
commit 8c1df7a8a8
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ access it with `require('assert')`.
Throws an exception that displays the values for `actual` and `expected` separated by the provided operator.
## assert(value, message), assert.ok(value[, message])
## assert(value[, message]), assert.ok(value[, message])
Tests if value is truthy, it is equivalent to `assert.equal(true, !!value, message);`