summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-08-29 02:30:15 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2012-08-29 02:36:22 +0200
commite4cef1a0833e6d677298600e205a142d15639bf2 (patch)
treebab2dbda2034a9924b28785f3d1280206f02c4b1 /doc/api
parent459717efb629cddb53d5b8cc64eb91a1e8de5340 (diff)
downloadnode-e4cef1a0833e6d677298600e205a142d15639bf2.tar.gz
doc: update assert.doesNotThrow() docs
It takes an optional "expected exception" argument that is not used meaningfully but is nevertheless documented. Undocument it, it confuses casual readers of the documentation. Fixes #3935.
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/assert.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/assert.markdown b/doc/api/assert.markdown
index c93c1e778..5849f6d93 100644
--- a/doc/api/assert.markdown
+++ b/doc/api/assert.markdown
@@ -74,7 +74,7 @@ Custom error validation:
"unexpected error"
);
-## assert.doesNotThrow(block, [error], [message])
+## assert.doesNotThrow(block, [message])
Expects `block` not to throw an error, see assert.throws for details.