From: Andrei Sedoi Date: Fri, 9 Jan 2015 17:55:32 +0000 (+0200) Subject: doc: use correct signature for assert() X-Git-Tag: v1.3.0~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8c1df7a8a882860da81ccdd543f5a00663548b31;p=platform%2Fupstream%2Fnodejs.git 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 Reviewed-By: Trevor Norris --- diff --git a/doc/api/assert.markdown b/doc/api/assert.markdown index 9162850..0901a25 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);`