From 8c1df7a8a882860da81ccdd543f5a00663548b31 Mon Sep 17 00:00:00 2001 From: Andrei Sedoi Date: Fri, 9 Jan 2015 19:55:32 +0200 Subject: [PATCH] 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 --- doc/api/assert.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);` -- 2.7.4