Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dda777b

Browse filesBrowse files
committed
doc: consistent 'Returns:' part two
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>
1 parent 3b252a6 commit dda777b
Copy full SHA for dda777b

File tree

Expand file treeCollapse file tree

2 files changed

+7
-7
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+7
-7
lines changed
Open diff view settings
Collapse file

‎doc/api/child_process.md‎

Copy file name to clipboardExpand all lines: doc/api/child_process.md
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ added: v0.1.90
308308
'/bin/sh' on UNIX, and 'cmd.exe' on Windows. A different shell can be
309309
specified as a string. The shell should understand the `-c` switch on UNIX,
310310
or `/s /c` on Windows. Defaults to `false` (no shell).
311-
* return: {ChildProcess}
311+
* Returns: {ChildProcess}
312312

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

572572
The `child_process.execFileSync()` method is generally identical to
573573
`child_process.execFile()` with the exception that the method will not return
@@ -606,7 +606,7 @@ added: v0.11.12
606606
* `maxBuffer` {Number} largest amount of data (in bytes) allowed on stdout or
607607
stderr - if exceeded child process is killed
608608
* `encoding` {String} The encoding used for all stdio inputs and outputs. (Default: 'buffer')
609-
* return: {Buffer|String} The stdout from the command
609+
* Returns: {Buffer|String} The stdout from the command
610610

611611
The `child_process.execSync()` method is generally identical to
612612
`child_process.exec()` with the exception that the method will not return until
@@ -644,7 +644,7 @@ added: v0.11.12
644644
'/bin/sh' on UNIX, and 'cmd.exe' on Windows. A different shell can be
645645
specified as a string. The shell should understand the `-c` switch on UNIX,
646646
or `/s /c` on Windows. Defaults to `false` (no shell).
647-
* return: {Object}
647+
* Returns: {Object}
648648
* `pid` {Number} Pid of the child process
649649
* `output` {Array} Array of results from stdio output
650650
* `stdout` {Buffer|String} The contents of `output[1]`
Collapse file

‎doc/api/domain.md‎

Copy file name to clipboardExpand all lines: doc/api/domain.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
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

@@ -337,7 +337,7 @@ specified emitter.
337337
### domain.bind(callback)
338338

339339
* `callback` {Function} The callback function
340-
* return: {Function} The bound function
340+
* Returns: {Function} The bound function
341341

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

367367
* `callback` {Function} The callback function
368-
* return: {Function} The intercepted function
368+
* Returns: {Function} The intercepted function
369369

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.