Skip to content

Commit ecf6a46

Browse files
committed
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 7bdb5ca commit ecf6a46

19 files changed

+27
-27
lines changed

doc/api/cli.md

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ function connect() {
109109

110110

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

src/node_api.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2546,7 +2546,7 @@ napi_status napi_create_arraybuffer(napi_env env,
25462546
v8::ArrayBuffer::New(isolate, byte_length);
25472547

25482548
// Optionally return a pointer to the buffer's data, to avoid another call to
2549-
// retreive it.
2549+
// retrieve it.
25502550
if (data != nullptr) {
25512551
*data = buffer->GetContents().Data();
25522552
}

src/node_debug_options.cc

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 4 additions & 4 deletions
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

Lines changed: 1 addition & 1 deletion
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

0 commit comments

Comments
 (0)