Skip to content

Commit 864abc5

Browse files
silverwindaddaleax
authored andcommitted
src,lib,test,doc: correct misspellings
PR-URL: #13719 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]>
1 parent 022c6d0 commit 864abc5

19 files changed

+27
-27
lines changed

doc/api/cli.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ added: v8.0.0
426426
-->
427427

428428
`options...` are interpreted as if they had been specified on the command line
429-
before the actual command line (so they can be overriden). Node will exit with
429+
before the actual command line (so they can be overridden). Node will exit with
430430
an error if an option that is not allowed in the environment is used, such as
431431
`-p` or a script file.
432432

doc/api/n-api.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ typedef struct napi_extended_error_info {
239239
napi_status error_code;
240240
};
241241
```
242-
- `error_message`: Textual representation of the error that occured.
242+
- `error_message`: Textual representation of the error that occurred.
243243
- `engine_reserved`: Opaque handle reserved for engine use only.
244244
- `engine_error_code`: VM specific error code.
245245
- `error_code`: n-api status code for the last error.
@@ -267,7 +267,7 @@ information about the error.
267267
Returns `napi_ok` if the API succeeded.
268268
269269
This API retrieves a `napi_extended_error_info` structure with information
270-
about the last error that occured.
270+
about the last error that occurred.
271271
272272
*Note*: Do not rely on the content or format of any of the extended
273273
information as it is not subject to SemVer and may change at any time.

doc/node.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ When set to \fI1\fR, process warnings are silenced.
275275
.TP
276276
.BR NODE_OPTIONS =\fIoptions...\fR
277277
\fBoptions...\fR are interpreted as if they had been specified on the command
278-
line before the actual command line (so they can be overriden). Node will exit
278+
line before the actual command line (so they can be overridden). Node will exit
279279
with an error if an option that is not allowed in the environment is used, such
280280
as \fB-p\fR or a script file.
281281

lib/internal/process/next_tick.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// This value is used to prevent the nextTickQueue from becoming too
44
// large and cause the process to run out of memory. When this value
5-
// is reached the nextTimeQueue array will be shortend (see tickDone
5+
// is reached the nextTimeQueue array will be shortened (see tickDone
66
// for details).
77
const kMaxCallbacksPerLoop = 1e4;
88

lib/net.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ function connect() {
110110

111111

112112
// Returns an array [options, cb], where options is an object,
113-
// cb is either a funciton or null.
113+
// cb is either a function or null.
114114
// Used to normalize arguments of Socket.prototype.connect() and
115-
// Server.prototype.listen(). Possible combinations of paramters:
115+
// Server.prototype.listen(). Possible combinations of parameters:
116116
// (options[...][, cb])
117117
// (path[...][, cb])
118118
// ([port][, host][...][, cb])

src/node_api.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2561,7 +2561,7 @@ napi_status napi_create_arraybuffer(napi_env env,
25612561
v8::ArrayBuffer::New(isolate, byte_length);
25622562

25632563
// Optionally return a pointer to the buffer's data, to avoid another call to
2564-
// retreive it.
2564+
// retrieve it.
25652565
if (data != nullptr) {
25662566
*data = buffer->GetContents().Data();
25672567
}

src/node_debug_options.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ bool DebugOptions::ParseOption(const char* argv0, const std::string& option) {
7878
argument.clear();
7979
}
8080

81-
// Note that --debug-port and --debug-brk in conjuction with --inspect
81+
// Note that --debug-port and --debug-brk in conjunction with --inspect
8282
// work but are undocumented.
8383
// --debug is no longer valid.
8484
// Ref: https://github.com/nodejs/node/issues/12630

src/node_i18n.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ int32_t ToASCII(MaybeStackBuffer<char>* buf,
515515

516516
// In UTS #46 which specifies ToASCII, certain error conditions are
517517
// configurable through options, and the WHATWG URL Standard promptly elects
518-
// to disable some of them to accomodate for real-world use cases.
518+
// to disable some of them to accommodate for real-world use cases.
519519
// Unfortunately, ICU4C's IDNA module does not support disabling some of
520520
// these options through `options` above, and thus continues throwing
521521
// unnecessary errors. To counter this situation, we just filter out the

src/tracing/trace_event.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -396,21 +396,21 @@ static inline uint64_t AddTraceEventImpl(
396396
const char* scope, uint64_t id, uint64_t bind_id, int32_t num_args,
397397
const char** arg_names, const uint8_t* arg_types,
398398
const uint64_t* arg_values, unsigned int flags) {
399-
std::unique_ptr<v8::ConvertableToTraceFormat> arg_convertables[2];
399+
std::unique_ptr<v8::ConvertableToTraceFormat> arg_convertibles[2];
400400
if (num_args > 0 && arg_types[0] == TRACE_VALUE_TYPE_CONVERTABLE) {
401-
arg_convertables[0].reset(reinterpret_cast<v8::ConvertableToTraceFormat*>(
401+
arg_convertibles[0].reset(reinterpret_cast<v8::ConvertableToTraceFormat*>(
402402
static_cast<intptr_t>(arg_values[0])));
403403
}
404404
if (num_args > 1 && arg_types[1] == TRACE_VALUE_TYPE_CONVERTABLE) {
405-
arg_convertables[1].reset(reinterpret_cast<v8::ConvertableToTraceFormat*>(
405+
arg_convertibles[1].reset(reinterpret_cast<v8::ConvertableToTraceFormat*>(
406406
static_cast<intptr_t>(arg_values[1])));
407407
}
408408
// DCHECK(num_args <= 2);
409409
v8::Platform* platform =
410410
node::tracing::TraceEventHelper::GetCurrentPlatform();
411411
return platform->AddTraceEvent(phase, category_group_enabled, name, scope, id,
412412
bind_id, num_args, arg_names, arg_types,
413-
arg_values, arg_convertables, flags);
413+
arg_values, arg_convertibles, flags);
414414
}
415415

416416
// Define SetTraceValue for each allowed type. It stores the type and

test/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This directory contains code and data used to test the Node.js implementation.
55
For a detailed guide on how to write tests in this
66
directory, see [the guide on writing tests](../doc/guides/writing-tests.md).
77

8-
On how to run tests in this direcotry, see
8+
On how to run tests in this directory, see
99
[the contributing guide](../CONTRIBUTING.md#step-5-test).
1010

1111
## Test Directories

test/addons-napi/test_general/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ assert.ok(test_general.testGetPrototype(baseObject) !==
3131
test_general.testGetPrototype(extendedObject),
3232
'Prototypes for base and extended should be different');
3333

34-
// test version management funcitons
34+
// test version management functions
3535
// expected version is currently 1
3636
assert.strictEqual(test_general.testGetVersion(), 1);

test/async-hooks/test-promise.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ function onexit() {
4747
assert.strictEqual(a1.type, 'PROMISE');
4848
assert.strictEqual(typeof a1.uid, 'number');
4949
assert.strictEqual(a1.triggerAsyncId, a0.uid);
50-
// We expect a destroy hook as well but we cannot guarentee predictable gc.
50+
// We expect a destroy hook as well but we cannot guarantee predictable gc.
5151
checkInvocations(a1, { init: 1, before: 1, after: 1 }, 'when process exits');
5252
}

test/async-hooks/test-promise.promise-before-init-hooks.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ process.on('exit', function onexit() {
3737
// immediately before the child promise, thus there should only be one
3838
// difference in id.
3939
assert.strictEqual(a0.triggerAsyncId, a0.uid - 1);
40-
// We expect a destroy hook as well but we cannot guarentee predictable gc.
40+
// We expect a destroy hook as well but we cannot guarantee predictable gc.
4141
checkInvocations(a0, { init: 1, before: 1, after: 1 }, 'when process exits');
4242
});

test/async-hooks/test-udpsendwrap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function onlistening() {
2121
new Buffer(2), 0, 2, sock.address().port,
2222
undefined, common.mustCall(onsent));
2323

24-
// init not called synchronously because dns lookup alwasy wraps
24+
// init not called synchronously because dns lookup always wraps
2525
// callback in a next tick even if no lookup is needed
2626
// TODO (trevnorris) submit patch to fix creation of tick objects and instead
2727
// create the send wrap synchronously.

test/parallel/test-async-wrap-getasyncid.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function testInitialized(req, ctor_name) {
6868

6969
{
7070
// We don't want to expose getAsyncId for promises but we need to construct
71-
// one so that the cooresponding provider type is removed from the
71+
// one so that the corresponding provider type is removed from the
7272
// providers list.
7373
new Promise((res) => res(5));
7474
}

test/parallel/test-internal-fs-syncwritestream.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ common.refreshTmpDir();
1111

1212
const filename = path.join(common.tmpDir, 'sync-write-stream.txt');
1313

14-
// Verify constructing the instance with defualt options.
14+
// Verify constructing the instance with default options.
1515
{
1616
const stream = new SyncWriteStream(1);
1717

@@ -31,7 +31,7 @@ const filename = path.join(common.tmpDir, 'sync-write-stream.txt');
3131
assert.strictEqual(stream.listenerCount('end'), 1);
3232
}
3333

34-
// Verfiy that the file will be writen synchronously.
34+
// Verfiy that the file will be written synchronously.
3535
{
3636
const fd = fs.openSync(filename, 'w');
3737
const stream = new SyncWriteStream(fd);
@@ -41,7 +41,7 @@ const filename = path.join(common.tmpDir, 'sync-write-stream.txt');
4141
assert.strictEqual(fs.readFileSync(filename).equals(chunk), true);
4242
}
4343

44-
// Verify that the stream will unset the fd after destory().
44+
// Verify that the stream will unset the fd after destroy().
4545
{
4646
const fd = fs.openSync(filename, 'w');
4747
const stream = new SyncWriteStream(fd);

test/parallel/test-net-connect-options-allowhalfopen.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const forAllClients = (cb) => common.mustCall(cb, CLIENT_VARIANTS);
6565
}));
6666
socket.on('end', common.mustCall(function() {
6767
serverReceivedFIN++;
68-
console.error(`Server recieved FIN sent by No. ${clientId}`);
68+
console.error(`Server received FIN sent by No. ${clientId}`);
6969
if (serverReceivedFIN === CLIENT_VARIANTS) {
7070
setTimeout(() => {
7171
server.close();

tools/cpplint.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6051,7 +6051,7 @@ def ParseArguments(args):
60516051
try:
60526052
_valid_extensions = set(val.split(','))
60536053
except ValueError:
6054-
PrintUsage('Extensions must be comma seperated list.')
6054+
PrintUsage('Extensions must be comma separated list.')
60556055
elif opt == '--logfile':
60566056
logger.addHandler(logging.FileHandler(val, mode='wb'))
60576057

vcbuild.bat

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ if /i "%1"=="clean" set target=Clean&goto arg-ok
5555
if /i "%1"=="ia32" set target_arch=x86&goto arg-ok
5656
if /i "%1"=="x86" set target_arch=x86&goto arg-ok
5757
if /i "%1"=="x64" set target_arch=x64&goto arg-ok
58-
@rem args should be vs2017 and vs2015. keeping vc2015 for backward combatibility (undocumented)
58+
@rem args should be vs2017 and vs2015. keeping vc2015 for backward compatibility (undocumented)
5959
if /i "%1"=="vc2015" set target_env=vs2015&goto arg-ok
6060
if /i "%1"=="vs2015" set target_env=vs2015&goto arg-ok
6161
if /i "%1"=="vs2017" set target_env=vs2017&goto arg-ok
@@ -157,7 +157,7 @@ if defined noprojgen if defined nobuild if not defined sign if not defined msi g
157157
set msvs_host_arch=x86
158158
if _%PROCESSOR_ARCHITECTURE%_==_AMD64_ set msvs_host_arch=amd64
159159
if _%PROCESSOR_ARCHITEW6432%_==_AMD64_ set msvs_host_arch=amd64
160-
@rem usualy vcvarsall takes an argument: host + '_' + target
160+
@rem usually vcvarsall takes an argument: host + '_' + target
161161
set vcvarsall_arg=%msvs_host_arch%_%target_arch%
162162
@rem unless both host and target are x64
163163
if %target_arch%==x64 if %msvs_host_arch%==amd64 set vcvarsall_arg=amd64

0 commit comments

Comments
 (0)