diff options
author | Andrei Sedoi <bsnote@gmail.com> | 2015-01-09 19:55:32 +0200 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2015-01-20 10:51:00 -0500 |
commit | 430096a90f69fc98b1786dfa0009c02b0d011143 (patch) | |
tree | 9bbc9fac05a2ea0a004e55139b01de1d864f7ae7 | |
parent | 7a8ea15d6fbbf14ee1aef50714ae254f2130b9b5 (diff) | |
download | node-430096a90f69fc98b1786dfa0009c02b0d011143.tar.gz |
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>
-rw-r--r-- | doc/api/assert.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/assert.markdown b/doc/api/assert.markdown index 0fb7f0b8d..771a87338 100644 --- a/doc/api/assert.markdown +++ b/doc/api/assert.markdown @@ -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);` |