doc: fix console.assert docs, message is a format

Documentation for console.assert incorrectly described message as a
single message, but it is a format.

Signed-off-by: Fedor Indutny <fedor@indutny.com>
archived-io.js-v0.10
Sam Roberts 2014-07-05 14:22:45 -07:00 committed by Fedor Indutny
parent 11337db35f
commit e2f2a20279
1 changed files with 3 additions and 3 deletions

View File

@ -66,10 +66,10 @@ Finish timer, record output. Example:
Print a stack trace to stderr of the current position.
## console.assert(expression, [message])
## console.assert(value, [message], [...])
Same as [assert.ok()][] where if the `expression` evaluates as `false` throw an
AssertionError with `message`.
Similar to [assert.ok()][], but the error message is formatted as
`util.format(message...)`.
[assert.ok()]: assert.html#assert_assert_value_message_assert_ok_value_message
[util.format()]: util.html#util_util_format_format