summaryrefslogtreecommitdiff
path: root/doc/api/domain.md
diff options
context:
space:
mode:
authorMyles Borins <myles.borins@gmail.com>2016-12-21 14:14:16 -0500
committerMyles Borins <myles.borins@gmail.com>2016-12-23 12:16:05 -0500
commit0bdd39f729a9c26a88cda964696b97bdaa2592d4 (patch)
treeffcc67485ea18470b84f72401c09b5849acc7e95 /doc/api/domain.md
parent81b0cc447595cc2e2608489ab5fd46f1f334faf4 (diff)
downloadandroid-node-v8-0bdd39f729a9c26a88cda964696b97bdaa2592d4.tar.gz
android-node-v8-0bdd39f729a9c26a88cda964696b97bdaa2592d4.tar.bz2
android-node-v8-0bdd39f729a9c26a88cda964696b97bdaa2592d4.zip
doc: consistent 'Returns:' part two
Follow up from 8eb19c4. Lower case `return` was not updated PR-URL: https://github.com/nodejs/node/pull/10391 Ref: https://github.com/nodejs/node/pull/9554 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Julian Duque <julianduquej@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: James M Snell <jasnell@gmail.com>
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`][]