Skip to content

Commit 5acad6b

Browse files
committed
child_process: fix arguments comments
Fixes the arguments comments for execFileSync and other related minor inconsistencies in commented arguments in the same file. PR-URL: #2161 Reviewed-By: Colin Ihrig <[email protected]>
1 parent d4ceb16 commit 5acad6b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/child_process.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ exports._forkChild = function(fd) {
6262
};
6363

6464

65-
function normalizeExecArgs(command /*, options, callback */) {
65+
function normalizeExecArgs(command /*, options, callback*/) {
6666
var file, args, options, callback;
6767

6868
if (typeof arguments[1] === 'function') {
@@ -98,7 +98,7 @@ function normalizeExecArgs(command /*, options, callback */) {
9898
}
9999

100100

101-
exports.exec = function(command /*, options, callback */) {
101+
exports.exec = function(command /*, options, callback*/) {
102102
var opts = normalizeExecArgs.apply(null, arguments);
103103
return exports.execFile(opts.file,
104104
opts.args,
@@ -107,7 +107,7 @@ exports.exec = function(command /*, options, callback */) {
107107
};
108108

109109

110-
exports.execFile = function(file /* args, options, callback */) {
110+
exports.execFile = function(file /*, args, options, callback*/) {
111111
var args, callback;
112112
var options = {
113113
encoding: 'utf8',
@@ -443,7 +443,7 @@ function checkExecSyncError(ret) {
443443
}
444444

445445

446-
function execFileSync(/*command, options*/) {
446+
function execFileSync(/*command, args, options*/) {
447447
var opts = normalizeSpawnArguments.apply(null, arguments);
448448
var inheritStderr = !opts.options.stdio;
449449

@@ -462,7 +462,7 @@ function execFileSync(/*command, options*/) {
462462
exports.execFileSync = execFileSync;
463463

464464

465-
function execSync(/*comand, options*/) {
465+
function execSync(/*command, options*/) {
466466
var opts = normalizeExecArgs.apply(null, arguments);
467467
var inheritStderr = opts.options ? !opts.options.stdio : true;
468468

0 commit comments

Comments
 (0)