Skip to content

Commit

Permalink
doc: consistent 'Returns:' part two
Browse files Browse the repository at this point in the history
Follow up from 8eb19c4. Lower case `return` was not updated

PR-URL: #10391
Ref: #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>
  • Loading branch information
MylesBorins committed Dec 23, 2016
1 parent 81b0cc4 commit 0bdd39f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions doc/api/child_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ added: v0.1.90
`'/bin/sh'` on UNIX, and `'cmd.exe'` on Windows. A different shell can be
specified as a string. The shell should understand the `-c` switch on UNIX,
or `/d /s /c` on Windows. Defaults to `false` (no shell).
* return: {ChildProcess}
* Returns: {ChildProcess}

The `child_process.spawn()` method spawns a new process using the given
`command`, with command line arguments in `args`. If omitted, `args` defaults
Expand Down Expand Up @@ -588,7 +588,7 @@ added: v0.11.12
* [`maxBuffer`][] {Number} largest amount of data (in bytes) allowed on
stdout or stderr - if exceeded child process is killed
* `encoding` {String} The encoding used for all stdio inputs and outputs. (Default: `'buffer'`)
* return: {Buffer|String} The stdout from the command
* Returns: {Buffer|String} The stdout from the command

The `child_process.execFileSync()` method is generally identical to
[`child_process.execFile()`][] with the exception that the method will not return
Expand Down Expand Up @@ -631,7 +631,7 @@ added: v0.11.12
stdout or stderr - if exceeded child process is killed
* `encoding` {String} The encoding used for all stdio inputs and outputs.
(Default: `'buffer'`)
* return: {Buffer|String} The stdout from the command
* Returns: {Buffer|String} The stdout from the command

The `child_process.execSync()` method is generally identical to
[`child_process.exec()`][] with the exception that the method will not return until
Expand Down Expand Up @@ -673,7 +673,7 @@ added: v0.11.12
`'/bin/sh'` on UNIX, and `'cmd.exe'` on Windows. A different shell can be
specified as a string. The shell should understand the `-c` switch on UNIX,
or `/d /s /c` on Windows. Defaults to `false` (no shell).
* return: {Object}
* Returns: {Object}
* `pid` {Number} Pid of the child process
* `output` {Array} Array of results from stdio output
* `stdout` {Buffer|String} The contents of `output[1]`
Expand Down
6 changes: 3 additions & 3 deletions doc/api/domain.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ serverDomain.run(() => {

## domain.create()

* return: {Domain}
* Returns: {Domain}

Returns a new Domain object.

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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`][]
Expand Down

0 comments on commit 0bdd39f

Please sign in to comment.