summaryrefslogtreecommitdiff
path: root/doc/api/domain.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/domain.md')
-rw-r--r--doc/api/domain.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/domain.md b/doc/api/domain.md
index e1dd65e05c..86f5226d69 100644
--- a/doc/api/domain.md
+++ b/doc/api/domain.md
@@ -257,7 +257,7 @@ serverDomain.run(() => {
## domain.create()
-* return: {Domain}
+* Returns: {Domain}
Returns a new Domain object.
@@ -338,7 +338,7 @@ specified emitter.
### domain.bind(callback)
* `callback` {Function} The callback function
-* return: {Function} The bound function
+* Returns: {Function} The bound function
The returned function will be a wrapper around the supplied callback
function. When the returned function is called, any errors that are
@@ -366,7 +366,7 @@ d.on('error', (er) => {
### domain.intercept(callback)
* `callback` {Function} The callback function
-* return: {Function} The intercepted function
+* Returns: {Function} The intercepted function
This method is almost identical to [`domain.bind(callback)`][]. However, in
addition to catching thrown errors, it will also intercept [`Error`][]