doc: use correct signature for assert()
authorAndrei Sedoi <bsnote@gmail.com>
Fri, 9 Jan 2015 17:55:32 +0000 (19:55 +0200)
committercjihrig <cjihrig@gmail.com>
Fri, 13 Feb 2015 18:37:24 +0000 (13:37 -0500)
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>
doc/api/assert.markdown

index 9162850..0901a25 100644 (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);`