summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Sedoi <bsnote@gmail.com>2015-01-09 19:55:32 +0200
committercjihrig <cjihrig@gmail.com>2015-01-20 10:51:00 -0500
commit430096a90f69fc98b1786dfa0009c02b0d011143 (patch)
tree9bbc9fac05a2ea0a004e55139b01de1d864f7ae7
parent7a8ea15d6fbbf14ee1aef50714ae254f2130b9b5 (diff)
downloadnode-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.markdown2
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);`