Skip to content

Commit

Permalink
doc: use correct signature for assert()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bsnote authored and cjihrig committed Feb 13, 2015
1 parent 0cff052 commit 8c1df7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/assert.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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);`

Expand Down

0 comments on commit 8c1df7a

Please sign in to comment.