doc: update assert.markdown
authorNicolas Talle <dev@nicolab.net>
Sat, 22 Feb 2014 15:02:10 +0000 (16:02 +0100)
committerFedor Indutny <fedor.indutny@gmail.com>
Sun, 23 Feb 2014 14:09:26 +0000 (18:09 +0400)
Update assert.throws() and assert.doesNotThrow() docs

doc/api/assert.markdown

index 5849f6d..1a66022 100644 (file)
@@ -39,7 +39,7 @@ Tests strict non-equality, as determined by the strict not equal operator ( `!==
 
 ## assert.throws(block, [error], [message])
 
-Expects `block` to throw an error. `error` can be constructor, regexp or 
+Expects `block` to throw an error. `error` can be constructor, `RegExp` or
 validation function.
 
 Validate instanceof using constructor:
@@ -76,7 +76,7 @@ Custom error validation:
 
 ## assert.doesNotThrow(block, [message])
 
-Expects `block` not to throw an error, see assert.throws for details.
+Expects `block` not to throw an error, see `assert.throws` for details.
 
 ## assert.ifError(value)