Skip to content

Commit 2a1cc66

Browse files
committed
benchmark,doc,lib,test: capitalize comments
PR-URL: #26483 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent 7c8bb94 commit 2a1cc66

File tree

223 files changed

+457
-460
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

223 files changed

+457
-460
lines changed

benchmark/_cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function CLI(usage, settings) {
6565
// item arguments
6666
this.items.push(arg);
6767

68-
// the next value must be an item
68+
// The next value must be an item
6969
mode = 'item';
7070
} else {
7171
// Bad case, abort

benchmark/net/net-c2s-cork.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// test the speed of .pipe() with sockets
1+
// Test the speed of .pipe() with sockets
22
'use strict';
33

44
const common = require('../common.js');
@@ -78,7 +78,7 @@ Writer.prototype.write = function(chunk, encoding, cb) {
7878
return true;
7979
};
8080

81-
// doesn't matter, never emits anything.
81+
// Doesn't matter, never emits anything.
8282
Writer.prototype.on = function() {};
8383
Writer.prototype.once = function() {};
8484
Writer.prototype.emit = function() {};

benchmark/net/net-c2s.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// test the speed of .pipe() with sockets
1+
// Test the speed of .pipe() with sockets
22
'use strict';
33

44
const common = require('../common.js');
@@ -72,7 +72,7 @@ Writer.prototype.write = function(chunk, encoding, cb) {
7272
return true;
7373
};
7474

75-
// doesn't matter, never emits anything.
75+
// Doesn't matter, never emits anything.
7676
Writer.prototype.on = function() {};
7777
Writer.prototype.once = function() {};
7878
Writer.prototype.emit = function() {};

benchmark/net/net-pipe.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// test the speed of .pipe() with sockets
1+
// Test the speed of .pipe() with sockets
22
'use strict';
33

44
const common = require('../common.js');
@@ -75,7 +75,7 @@ Writer.prototype.write = function(chunk, encoding, cb) {
7575
return true;
7676
};
7777

78-
// doesn't matter, never emits anything.
78+
// Doesn't matter, never emits anything.
7979
Writer.prototype.on = function() {};
8080
Writer.prototype.once = function() {};
8181
Writer.prototype.emit = function() {};

benchmark/net/net-s2c.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// test the speed of .pipe() with sockets
1+
// Test the speed of .pipe() with sockets
22
'use strict';
33

44
const common = require('../common.js');
@@ -73,7 +73,7 @@ Writer.prototype.write = function(chunk, encoding, cb) {
7373
return true;
7474
};
7575

76-
// doesn't matter, never emits anything.
76+
// Doesn't matter, never emits anything.
7777
Writer.prototype.on = function() {};
7878
Writer.prototype.once = function() {};
7979
Writer.prototype.emit = function() {};

benchmark/net/net-wrap-js-stream-passthrough.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Writer.prototype.write = function(chunk, encoding, cb) {
6868
return true;
6969
};
7070

71-
// doesn't matter, never emits anything.
71+
// Doesn't matter, never emits anything.
7272
Writer.prototype.on = function() {};
7373
Writer.prototype.once = function() {};
7474
Writer.prototype.emit = function() {};

benchmark/net/tcp-raw-s2c.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
const common = require('../common.js');
66
const util = require('util');
77

8-
// if there are dur=N and len=N args, then
8+
// If there are dur=N and len=N args, then
99
// run the function with those settings.
10-
// if not, then queue up a bunch of child processes.
10+
// If not, then queue up a bunch of child processes.
1111
const bench = common.createBenchmark(main, {
1212
len: [102400, 1024 * 1024 * 16],
1313
type: ['utf', 'asc', 'buf'],

benchmark/run.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ if (format === 'csv') {
5050
for (const key of Object.keys(data.conf)) {
5151
conf += ` ${key}=${JSON.stringify(data.conf[key])}`;
5252
}
53-
// delete first space of the configuration
53+
// Delete first space of the configuration
5454
conf = conf.slice(1);
5555
if (format === 'csv') {
5656
// Escape quotes (") for correct csv formatting

benchmark/timers/immediate.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function depth1(N) {
5757
}
5858
}
5959

60-
// concurrent setImmediate, 0 arguments
60+
// Concurrent setImmediate, 0 arguments
6161
function breadth(N) {
6262
var n = 0;
6363
bench.start();
@@ -71,7 +71,7 @@ function breadth(N) {
7171
}
7272
}
7373

74-
// concurrent setImmediate, 1 argument
74+
// Concurrent setImmediate, 1 argument
7575
function breadth1(N) {
7676
var n = 0;
7777
bench.start();
@@ -85,7 +85,7 @@ function breadth1(N) {
8585
}
8686
}
8787

88-
// concurrent setImmediate, 4 arguments
88+
// Concurrent setImmediate, 4 arguments
8989
function breadth4(N) {
9090
N /= 2;
9191
var n = 0;

doc/api/cluster.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ if (cluster.isMaster) {
237237
res.writeHead(200);
238238
res.end('hello world\n');
239239

240-
// notify master about the request
240+
// Notify master about the request
241241
process.send({ cmd: 'notifyRequest' });
242242
}).listen(8000);
243243
}

0 commit comments

Comments
 (0)