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 d66cb4a

Browse filesBrowse files
committed
benchmark,doc,lib,test: capitalize comments
This updates a lot of comments. PR-URL: #26223 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
1 parent 3f4b27d commit d66cb4a
Copy full SHA for d66cb4a

File tree

Expand file treeCollapse file tree

202 files changed

+348
-349
lines changed
Open diff view settings
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

202 files changed

+348
-349
lines changed
Open diff view settings
Collapse file

‎.eslintrc.js‎

Copy file name to clipboardExpand all lines: .eslintrc.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ module.exports = {
6060
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
6161
'capitalized-comments': ['error', 'always', {
6262
line: {
63-
// Ignore all lines that have less characters than 50 and all lines that
63+
// Ignore all lines that have less characters than 40 and all lines that
6464
// start with something that looks like a variable name or code.
65-
ignorePattern: '^.{0,50}$|^ [a-z]+ ?[0-9A-Z_.(/=:[#-]',
65+
ignorePattern: '^.{0,40}$|^ [a-z]+ ?[0-9A-Z_.(/=:[#-]|^ std',
6666
ignoreInlineComments: true,
6767
ignoreConsecutiveComments: true,
6868
},
Collapse file

‎benchmark/_cli.js‎

Copy file name to clipboardExpand all lines: benchmark/_cli.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function CLI(usage, settings) {
2828
}
2929

3030
let currentOptional = null;
31-
let mode = 'both'; // possible states are: [both, option, item]
31+
let mode = 'both'; // Possible states are: [both, option, item]
3232

3333
for (const arg of process.argv.slice(2)) {
3434
if (arg === '--') {
@@ -59,7 +59,7 @@ function CLI(usage, settings) {
5959
this.optional[currentOptional] = arg;
6060
}
6161

62-
// the next value can be either an option or an item
62+
// The next value can be either an option or an item
6363
mode = 'both';
6464
} else if (['both', 'item'].includes(mode)) {
6565
// item arguments
Collapse file

‎benchmark/crypto/cipher-stream.js‎

Copy file name to clipboardExpand all lines: benchmark/crypto/cipher-stream.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function main({ api, cipher, type, len, writes }) {
1515
cipher = 'AES192';
1616
if (api === 'stream' && /^v0\.[0-8]\./.test(process.version)) {
1717
console.error('Crypto streams not available until v0.10');
18-
// use the legacy, just so that we can compare them.
18+
// Use the legacy, just so that we can compare them.
1919
api = 'legacy';
2020
}
2121

Collapse file

‎benchmark/crypto/hash-stream-creation.js‎

Copy file name to clipboardExpand all lines: benchmark/crypto/hash-stream-creation.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const bench = common.createBenchmark(main, {
1616
function main({ api, type, len, out, writes, algo }) {
1717
if (api === 'stream' && /^v0\.[0-8]\./.test(process.version)) {
1818
console.error('Crypto streams not available until v0.10');
19-
// use the legacy, just so that we can compare them.
19+
// Use the legacy, just so that we can compare them.
2020
api = 'legacy';
2121
}
2222

@@ -54,7 +54,7 @@ function legacyWrite(algo, message, encoding, writes, len, outEnc) {
5454
h.update(message, encoding);
5555
var res = h.digest(outEnc);
5656

57-
// include buffer creation costs for older versions
57+
// Include buffer creation costs for older versions
5858
if (outEnc === 'buffer' && typeof res === 'string')
5959
res = Buffer.from(res, 'binary');
6060
}
Collapse file

‎benchmark/crypto/hash-stream-throughput.js‎

Copy file name to clipboardExpand all lines: benchmark/crypto/hash-stream-throughput.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const bench = common.createBenchmark(main, {
1515
function main({ api, type, len, algo, writes }) {
1616
if (api === 'stream' && /^v0\.[0-8]\./.test(process.version)) {
1717
console.error('Crypto streams not available until v0.10');
18-
// use the legacy, just so that we can compare them.
18+
// Use the legacy, just so that we can compare them.
1919
api = 'legacy';
2020
}
2121

Collapse file

‎benchmark/crypto/rsa-encrypt-decrypt-throughput.js‎

Copy file name to clipboardExpand all lines: benchmark/crypto/rsa-encrypt-decrypt-throughput.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
// throughput benchmark in signing and verifying
2+
// Throughput benchmark in signing and verifying
33
const common = require('../common.js');
44
const crypto = require('crypto');
55
const fs = require('fs');
Collapse file

‎benchmark/crypto/rsa-sign-verify-throughput.js‎

Copy file name to clipboardExpand all lines: benchmark/crypto/rsa-sign-verify-throughput.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
// throughput benchmark in signing and verifying
2+
// Throughput benchmark in signing and verifying
33
const common = require('../common.js');
44
const crypto = require('crypto');
55
const fs = require('fs');
Collapse file

‎benchmark/fs/read-stream-throughput.js‎

Copy file name to clipboardExpand all lines: benchmark/fs/read-stream-throughput.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// test the throughput of the fs.WriteStream class.
1+
// Test the throughput of the fs.WriteStream class.
22
'use strict';
33

44
const path = require('path');
Collapse file

‎benchmark/fs/write-stream-throughput.js‎

Copy file name to clipboardExpand all lines: benchmark/fs/write-stream-throughput.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// test the throughput of the fs.WriteStream class.
1+
// Test the throughput of the fs.WriteStream class.
22
'use strict';
33

44
const path = require('path');
Collapse file

‎benchmark/net/tcp-raw-c2s.js‎

Copy file name to clipboardExpand all lines: benchmark/net/tcp-raw-c2s.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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.
1010
// if not, then queue up a bunch of child processes.
1111
const bench = common.createBenchmark(main, {
@@ -36,7 +36,7 @@ function main({ dur, len, type }) {
3636
if (err)
3737
fail(err, 'connect');
3838

39-
// the meat of the benchmark is right here:
39+
// The meat of the benchmark is right here:
4040
bench.start();
4141
var bytes = 0;
4242

0 commit comments

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