From 430096a90f69fc98b1786dfa0009c02b0d011143 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 0fb7f0b8d42f..771a87338e65 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);`