Skip to content

Commit 4365bb4

Browse files
MylesBorinsevanlucas
authored andcommitted
doc: consistent 'Returns:' part two
Follow up from 8eb19c4. Lower case `return` was not updated PR-URL: #10391 Ref: #9554 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Julian Duque <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 91a2dc2 commit 4365bb4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

doc/api/child_process.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ added: v0.1.90
318318
`'/bin/sh'` on UNIX, and `'cmd.exe'` on Windows. A different shell can be
319319
specified as a string. The shell should understand the `-c` switch on UNIX,
320320
or `/d /s /c` on Windows. Defaults to `false` (no shell).
321-
* return: {ChildProcess}
321+
* Returns: {ChildProcess}
322322

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

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

636636
The `child_process.execSync()` method is generally identical to
637637
[`child_process.exec()`][] with the exception that the method will not return until
@@ -673,7 +673,7 @@ added: v0.11.12
673673
`'/bin/sh'` on UNIX, and `'cmd.exe'` on Windows. A different shell can be
674674
specified as a string. The shell should understand the `-c` switch on UNIX,
675675
or `/d /s /c` on Windows. Defaults to `false` (no shell).
676-
* return: {Object}
676+
* Returns: {Object}
677677
* `pid` {Number} Pid of the child process
678678
* `output` {Array} Array of results from stdio output
679679
* `stdout` {Buffer|String} The contents of `output[1]`

doc/api/domain.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ serverDomain.run(() => {
257257

258258
## domain.create()
259259

260-
* return: {Domain}
260+
* Returns: {Domain}
261261

262262
Returns a new Domain object.
263263

@@ -338,7 +338,7 @@ specified emitter.
338338
### domain.bind(callback)
339339

340340
* `callback` {Function} The callback function
341-
* return: {Function} The bound function
341+
* Returns: {Function} The bound function
342342

343343
The returned function will be a wrapper around the supplied callback
344344
function. When the returned function is called, any errors that are
@@ -366,7 +366,7 @@ d.on('error', (er) => {
366366
### domain.intercept(callback)
367367

368368
* `callback` {Function} The callback function
369-
* return: {Function} The intercepted function
369+
* Returns: {Function} The intercepted function
370370

371371
This method is almost identical to [`domain.bind(callback)`][]. However, in
372372
addition to catching thrown errors, it will also intercept [`Error`][]

0 commit comments

Comments
 (0)