Skip to content

Commit f56ca30

Browse files
bf4addaleax
authored andcommitted
benchmark,build,doc,lib,src,test: correct typos
PR-URL: #11189 Reviewed-By: Brian White <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]>
1 parent f972bd8 commit f56ca30

23 files changed

+36
-36
lines changed

benchmark/compare.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ statistics = ddply(dat, "name", function(subdat) {
4747

4848
p.value = NA;
4949
confidence = 'NA';
50-
# Check if there is enough data to calulate the calculate the p-value
50+
# Check if there is enough data to calculate the calculate the p-value
5151
if (length(old.rate) > 1 && length(new.rate) > 1) {
5252
# Perform a statistics test to see of there actually is a difference in
5353
# performance.

benchmark/compare.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const BenchmarkProgress = require('./_benchmark_progress.js');
99
// Parse arguments
1010
//
1111
const cli = CLI(`usage: ./node compare.js [options] [--] <category> ...
12-
Run each benchmark in the <category> directory many times using two diffrent
12+
Run each benchmark in the <category> directory many times using two different
1313
node versions. More than one <category> directory can be specified.
1414
The output is formatted as csv, which can be processed using for
1515
example 'compare.R'.

configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def warn(msg):
503503
prefix = '\033[1m\033[93mWARNING\033[0m' if os.isatty(1) else 'WARNING'
504504
print('%s: %s' % (prefix, msg))
505505

506-
# track if warnings occured
506+
# track if warnings occurred
507507
warn.warned = False
508508

509509
def b(value):

doc/api_assets/dnt_helper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function _dntEnabled(dnt, userAgent) {
2626
var fxMatch = ua.match(/Firefox\/(\d+)/);
2727
var ieRegEx = /MSIE|Trident/i;
2828
var isIE = ieRegEx.test(ua);
29-
// Matches from Windows up to the first occurance of ; un-greedily
29+
// Matches from Windows up to the first occurrence of ; un-greedily
3030
// http://www.regexr.com/3c2el
3131
var platform = ua.match(/Windows.+?(?=;)/g);
3232

doc/changelogs/CHANGELOG_ARCHIVE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3025,7 +3025,7 @@ https://github.com/nodejs/node/commit/311d7dee19034ff1c6bc9098c36973b8d687eaba
30253025
* After V8 heap is compact, don't use a timer every 2 seconds.
30263026

30273027
* Improve nextTick implementation.
3028-
* Add primative support for Upgrading HTTP connections.
3028+
* Add primitive support for Upgrading HTTP connections.
30293029
(See commit log for docs 760bba5)
30303030

30313031
* Add timeout and maxBuffer options to child_process.exec

doc/changelogs/CHANGELOG_V5.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ This is a security release. All Node.js users should consult the security releas
215215
### Notable changes
216216

217217
**http**:
218-
* Enclose IPv6 Host header in square brackets. This will enable proper separation of the host adress from any port reference (Mihai Potra) [#5314](https://github.com/nodejs/node/pull/5314)
218+
* Enclose IPv6 Host header in square brackets. This will enable proper separation of the host address from any port reference (Mihai Potra) [#5314](https://github.com/nodejs/node/pull/5314)
219219

220220
**path**:
221221
* Make win32.isAbsolute more consistent (Brian White) [#6028](https://github.com/nodejs/node/pull/6028)

src/debug-agent.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ void Agent::WorkerRun() {
182182
CHECK_EQ(&child_loop_, env.event_loop());
183183
uv_run(&child_loop_, UV_RUN_DEFAULT);
184184

185-
// Clean-up peristent
185+
// Clean-up persistent
186186
api_.Reset();
187187
}
188188
isolate->Dispose();

src/node.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3444,7 +3444,7 @@ void LoadEnvironment(Environment* env) {
34443444
// (FatalException(), break on uncaught exception in debugger)
34453445
//
34463446
// This is not strictly necessary since it's almost impossible
3447-
// to attach the debugger fast enought to break on exception
3447+
// to attach the debugger fast enough to break on exception
34483448
// thrown during process startup.
34493449
try_catch.SetVerbose(true);
34503450

src/node_crypto.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ void SecureContext::SetDHParam(const FunctionCallbackInfo<Value>& args) {
913913
(void) &clear_error_on_return; // Silence compiler warning.
914914

915915
// Auto DH is not supported in openssl 1.0.1, so dhparam needs
916-
// to be specifed explicitly
916+
// to be specified explicitly
917917
if (args.Length() != 1)
918918
return env->ThrowTypeError("DH argument is mandatory");
919919

src/string_search.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ inline const void* MemrchrFill(const void* haystack, uint8_t needle,
238238
}
239239

240240

241-
// Finds the first occurence of *two-byte* character pattern[0] in the string
241+
// Finds the first occurrence of *two-byte* character pattern[0] in the string
242242
// `subject`. Does not check that the whole pattern matches.
243243
template <typename Char>
244244
inline size_t FindFirstCharacter(Vector<const Char> pattern,
@@ -284,7 +284,7 @@ inline size_t FindFirstCharacter(Vector<const Char> pattern,
284284
}
285285

286286

287-
// Finds the first occurance of the byte pattern[0] in string `subject`.
287+
// Finds the first occurrence of the byte pattern[0] in string `subject`.
288288
// Does not verify that the whole pattern matches.
289289
template <>
290290
inline size_t FindFirstCharacter(Vector<const uint8_t> pattern,
@@ -373,7 +373,7 @@ size_t StringSearch<Char>::BoyerMooreSearch(
373373
// Only preprocess at most kBMMaxShift last characters of pattern.
374374
size_t start = search->start_;
375375

376-
int* bad_char_occurence = search->bad_char_table();
376+
int* bad_char_occurrence = search->bad_char_table();
377377
int* good_suffix_shift = search->good_suffix_shift_table();
378378

379379
Char last_char = pattern[pattern_length - 1];
@@ -383,7 +383,7 @@ size_t StringSearch<Char>::BoyerMooreSearch(
383383
size_t j = pattern_length - 1;
384384
int c;
385385
while (last_char != (c = subject[index + j])) {
386-
int shift = j - CharOccurrence(bad_char_occurence, c);
386+
int shift = j - CharOccurrence(bad_char_occurrence, c);
387387
index += shift;
388388
if (index > subject_length - pattern_length) {
389389
return subject.length();
@@ -399,11 +399,11 @@ size_t StringSearch<Char>::BoyerMooreSearch(
399399
// we have matched more than our tables allow us to be smart about.
400400
// Fall back on BMH shift.
401401
index += pattern_length - 1 -
402-
CharOccurrence(bad_char_occurence,
402+
CharOccurrence(bad_char_occurrence,
403403
static_cast<Char>(last_char));
404404
} else {
405405
int gs_shift = good_suffix_shift[j + 1];
406-
int bc_occ = CharOccurrence(bad_char_occurence, c);
406+
int bc_occ = CharOccurrence(bad_char_occurrence, c);
407407
int shift = j - bc_occ;
408408
if (gs_shift > shift) {
409409
shift = gs_shift;

src/tls_wrap.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ void TLSWrap::InitSSL() {
123123

124124
SSL_set_bio(ssl_, enc_in_, enc_out_);
125125

126-
// NOTE: This could be overriden in SetVerifyMode
126+
// NOTE: This could be overridden in SetVerifyMode
127127
SSL_set_verify(ssl_, SSL_VERIFY_NONE, crypto::VerifyCallback);
128128

129129
#ifdef SSL_MODE_RELEASE_BUFFERS

test/internet/test-dgram-broadcast-multi-process.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ if (process.argv[2] === 'child') {
227227
listenSocket.on('close', function() {
228228
//HACK: Wait to exit the process to ensure that the parent
229229
//process has had time to receive all messages via process.send()
230-
//This may be indicitave of some other issue.
230+
//This may be indicative of some other issue.
231231
setTimeout(function() {
232232
process.exit();
233233
}, 1000);

test/parallel/test-child-process-fork-dgram.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ if (process.argv[2] === 'child') {
6363
const timer = setInterval(function() {
6464
/*
6565
* Both the parent and the child got at least one message,
66-
* test passed, clean up everyting.
66+
* test passed, clean up everything.
6767
*/
6868
if (parentGotMessage && childGotMessage) {
6969
clearInterval(timer);

test/parallel/test-cluster-message.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ if (cluster.isWorker) {
102102
if (data.code === 'received message') {
103103
check('worker', data.echo === 'message from master');
104104
} else {
105-
throw new Error('wrong TCP message recived: ' + data);
105+
throw new Error('wrong TCP message received: ' + data);
106106
}
107107
});
108108

test/parallel/test-cluster-setup-master-multiple.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const cluster = require('cluster');
66
assert(cluster.isMaster);
77

88
// The cluster.settings object is cloned even though the current implementation
9-
// makes that unecessary. This is to make the test less fragile if the
9+
// makes that unnecessary. This is to make the test less fragile if the
1010
// implementation ever changes such that cluster.settings is mutated instead of
1111
// replaced.
1212
function cheapClone(obj) {

test/parallel/test-crypto-binary-default.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ function testCipher2(key) {
477477

478478

479479
function testCipher3(key, iv) {
480-
// Test encyrption and decryption with explicit key and iv
480+
// Test encryption and decryption with explicit key and iv
481481
const plaintext =
482482
'32|RmVZZkFUVmpRRkp0TmJaUm56ZU9qcnJkaXNNWVNpTTU*|iXmckfRWZBGWWELw' +
483483
'eCBsThSsfUHLeRe0KCsK8ooHgxie0zOINpXxfZi/oNG7uq9JWFVCk70gfzQH8ZUJ' +
@@ -496,7 +496,7 @@ function testCipher3(key, iv) {
496496

497497

498498
function testCipher4(key, iv) {
499-
// Test encyrption and decryption with explicit key and iv
499+
// Test encryption and decryption with explicit key and iv
500500
const plaintext =
501501
'32|RmVZZkFUVmpRRkp0TmJaUm56ZU9qcnJkaXNNWVNpTTU*|iXmckfRWZBGWWELw' +
502502
'eCBsThSsfUHLeRe0KCsK8ooHgxie0zOINpXxfZi/oNG7uq9JWFVCk70gfzQH8ZUJ' +

test/parallel/test-crypto-cipheriv-decipheriv.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if (!common.hasCrypto) {
99
const crypto = require('crypto');
1010

1111
function testCipher1(key, iv) {
12-
// Test encyrption and decryption with explicit key and iv
12+
// Test encryption and decryption with explicit key and iv
1313
const plaintext =
1414
'32|RmVZZkFUVmpRRkp0TmJaUm56ZU9qcnJkaXNNWVNpTTU*|iXmckfRWZBGWWELw' +
1515
'eCBsThSsfUHLeRe0KCsK8ooHgxie0zOINpXxfZi/oNG7uq9JWFVCk70gfzQH8ZUJ' +
@@ -41,7 +41,7 @@ function testCipher1(key, iv) {
4141

4242

4343
function testCipher2(key, iv) {
44-
// Test encyrption and decryption with explicit key and iv
44+
// Test encryption and decryption with explicit key and iv
4545
const plaintext =
4646
'32|RmVZZkFUVmpRRkp0TmJaUm56ZU9qcnJkaXNNWVNpTTU*|iXmckfRWZBGWWELw' +
4747
'eCBsThSsfUHLeRe0KCsK8ooHgxie0zOINpXxfZi/oNG7uq9JWFVCk70gfzQH8ZUJ' +

test/parallel/test-event-emitter-add-listeners.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ const EventEmitter = require('events');
55

66
{
77
const ee = new EventEmitter();
8-
const events_new_listener_emited = [];
9-
const listeners_new_listener_emited = [];
8+
const events_new_listener_emitted = [];
9+
const listeners_new_listener_emitted = [];
1010

1111
// Sanity check
1212
assert.strictEqual(ee.addListener, ee.on);
@@ -16,8 +16,8 @@ const EventEmitter = require('events');
1616
if (event === 'newListener')
1717
return;
1818

19-
events_new_listener_emited.push(event);
20-
listeners_new_listener_emited.push(listener);
19+
events_new_listener_emitted.push(event);
20+
listeners_new_listener_emitted.push(listener);
2121
});
2222

2323
const hello = common.mustCall(function(a, b) {
@@ -33,8 +33,8 @@ const EventEmitter = require('events');
3333

3434
ee.on('hello', hello);
3535
ee.once('foo', common.fail);
36-
assert.deepStrictEqual(['hello', 'foo'], events_new_listener_emited);
37-
assert.deepStrictEqual([hello, common.fail], listeners_new_listener_emited);
36+
assert.deepStrictEqual(['hello', 'foo'], events_new_listener_emitted);
37+
assert.deepStrictEqual([hello, common.fail], listeners_new_listener_emitted);
3838

3939
ee.emit('hello', 'a', 'b');
4040
}

test/parallel/test-fs-access.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ createFileWithPerms(readWriteFile, 0o666);
3232
*
3333
* There's not really any point in resetting the process' user id to 0 after
3434
* changing it to 'nobody', since in the case that the test runs without
35-
* superuser priviledge, it is not possible to change its process user id to
35+
* superuser privilege, it is not possible to change its process user id to
3636
* superuser.
3737
*
3838
* It can prevent the test from removing files created before the change of user
39-
* id, but that's fine. In this case, it is the responsability of the
39+
* id, but that's fine. In this case, it is the responsibility of the
4040
* continuous integration platform to take care of that.
4141
*/
4242
let hasWriteAccessForReadonlyFile = false;

test/parallel/test-process-no-deprecation.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22
// Flags: --no-warnings
33

4-
// The --no-warnings flag only supresses writing the warning to stderr, not the
4+
// The --no-warnings flag only suppresses writing the warning to stderr, not the
55
// emission of the corresponding event. This test file can be run without it.
66

77
const common = require('../common');

test/parallel/test-stream-readable-needReadable.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const slowProducer = new Readable({
7474

7575
slowProducer.on('readable', common.mustCall(() => {
7676
if (slowProducer.read(8) === null) {
77-
// The buffer doesn't have enough data, and the stream is not ened,
77+
// The buffer doesn't have enough data, and the stream is not need,
7878
// we need to notify the reader when data arrives.
7979
assert.strictEqual(slowProducer._readableState.needReadable, true);
8080
} else {

test/parallel/test-timers-socket-timeout-removes-other-socket-unref-timer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const server = net.createServer(function onClient(client) {
2525
clients[1].end();
2626
});
2727

28-
// Use a delay that is higher than the lowest timer resolution accross all
28+
// Use a delay that is higher than the lowest timer resolution across all
2929
// supported platforms, so that the two timers don't fire at the same time.
3030
clients[1].setTimeout(50);
3131
}

test/parallel/test-tls-check-server-identity.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ const tests = [
177177
error: 'Host: a.b.a.com. is not in the cert\'s altnames: ' +
178178
'DNS:*b.a.com'
179179
},
180-
// Mutliple DNS names
180+
// Multiple DNS names
181181
{
182182
host: 'a.b.a.com', cert: {
183183
subjectaltname: 'DNS:*b.a.com, DNS:a.b.a.com',

0 commit comments

Comments
 (0)