diff --git a/doc/api/assert.markdown b/doc/api/assert.markdown index 7bf6ebb40f..b81037287b 100644 --- a/doc/api/assert.markdown +++ b/doc/api/assert.markdown @@ -14,7 +14,7 @@ separated by the provided operator. ## assert(value[, message]), assert.ok(value[, message]) Tests if value is truthy. It is equivalent to -`assert.equal(true, !!value, message)`. +`assert.equal(!!value, true, message)`. ## assert.equal(actual, expected[, message])