Skip to content

Commit

Permalink
fixup: refine ifError() text
Browse files Browse the repository at this point in the history
It throws if `value` is truthy.
  • Loading branch information
Trott committed Sep 18, 2015
1 parent af394c1 commit 7c4a8f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/assert.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,5 @@ Expects `block` not to throw an error. See `assert.throws()` for details.

## assert.ifError(value)

Tests if value is an `Error` and, if so, throws it. This is useful when
testing the `error` argument in callbacks.
Throws `value` if `value` is truthy. This is useful when testing the `error`
argument in callbacks.

0 comments on commit 7c4a8f3

Please sign in to comment.