summaryrefslogtreecommitdiff
path: root/doc/api/errors.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/errors.md')
-rw-r--r--doc/api/errors.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/errors.md b/doc/api/errors.md
index 18774a9b95..7e32ba1cfc 100644
--- a/doc/api/errors.md
+++ b/doc/api/errors.md
@@ -407,7 +407,7 @@ program.
try {
require('vm').runInThisContext('binary ! isNotOk');
} catch (err) {
- // err will be a SyntaxError
+ // 'err' will be a SyntaxError.
}
```
@@ -422,7 +422,7 @@ string would be considered a `TypeError`.
```js
require('url').parse(() => { });
-// throws TypeError, since it expected a string
+// Throws TypeError, since it expected a string.
```
Node.js will generate and throw `TypeError` instances *immediately* as a form