Skip to content

Commit 2d7e4e0

Browse files
brandon93stargos
authored andcommitted
benchmark,doc,lib,src,test,tools: fix typos
PR-URL: #23302 Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]>
1 parent 12ff395 commit 2d7e4e0

35 files changed

+45
-45
lines changed

benchmark/crypto/get-ciphers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, {
1010
function main({ n, v }) {
1111
const method = require(v).getCiphers;
1212
var i = 0;
13-
// First call to getChipers will dominate the results
13+
// First call to getCiphers will dominate the results
1414
if (n > 1) {
1515
for (; i < n; i++)
1616
method();

doc/api/n-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1757,7 +1757,7 @@ added: v10.7.0
17571757

17581758
```C
17591759
napi_status napi_create_bigint_uint64(napi_env env,
1760-
uint64_t vaue,
1760+
uint64_t value,
17611761
napi_value* result);
17621762
```
17631763

lib/internal/bootstrap/node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137

138138
const browserGlobals = !process._noBrowserGlobals;
139139
if (browserGlobals) {
140-
// we are setting this here to foward it to the inspector later
140+
// we are setting this here to forward it to the inspector later
141141
perThreadSetup.originalConsole = global.console;
142142
setupGlobalTimeouts();
143143
setupGlobalConsole();

lib/internal/http2/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ const proxySocketHandler = {
762762
// indicate if the ping was successful or not. The duration indicates the
763763
// number of milliseconds elapsed since the ping was sent and the ack
764764
// received. The payload is a Buffer containing the 8 bytes of payload
765-
// data received on the PING acknowlegement.
765+
// data received on the PING acknowledgement.
766766
function pingCallback(cb) {
767767
return function pingCallback(ack, duration, payload) {
768768
if (ack) {

lib/internal/repl/recoverable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { tokTypes: tt } = acorn;
55

66
// If the error is that we've unexpectedly ended the input,
77
// then let the user try to recover by adding more input.
8-
// Note: `e` (the original exception) is not used by the current implemention,
8+
// Note: `e` (the original exception) is not used by the current implementation,
99
// but may be needed in the future.
1010
function isRecoverableError(e, code) {
1111
let recoverable = false;

src/aliased_buffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace node {
1414
* going through JS, and the data is then available to user's via the exposed
1515
* JS object.
1616
*
17-
* While this technique is computationaly efficient, it is effectively a
17+
* While this technique is computationally efficient, it is effectively a
1818
* write to JS program state w/out going through the standard
1919
* (monitored) API. Thus any VM capabilities to detect the modification are
2020
* circumvented.

src/inspector_agent.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Agent {
5757

5858
bool IsListening() { return io_ != nullptr; }
5959
// Returns true if the Node inspector is actually in use. It will be true
60-
// if either the user explicitely opted into inspector (e.g. with the
60+
// if either the user explicitly opted into inspector (e.g. with the
6161
// --inspect command line flag) or if inspector JS API had been used.
6262
bool IsActive();
6363

src/node_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ NAPI_EXTERN napi_status napi_adjust_external_memory(napi_env env,
598598
int64_t change_in_bytes,
599599
int64_t* adjusted_value);
600600

601-
// Runnig a script
601+
// Running a script
602602
NAPI_EXTERN napi_status napi_run_script(napi_env env,
603603
napi_value script,
604604
napi_value* result);

src/node_crypto.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2511,7 +2511,7 @@ int VerifyCallback(int preverify_ok, X509_STORE_CTX* ctx) {
25112511
//
25122512
// Since we cannot perform I/O quickly enough in this callback, we ignore
25132513
// all preverify_ok errors and let the handshake continue. It is
2514-
// imparative that the user use Connection::VerifyError after the
2514+
// imperative that the user use Connection::VerifyError after the
25152515
// 'secure' callback has been made.
25162516
return 1;
25172517
}

src/node_messaging.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ MaybeLocal<Value> Message::Deserialize(Environment* env,
9898
message_ports_.clear();
9999

100100
std::vector<Local<SharedArrayBuffer>> shared_array_buffers;
101-
// Attach all transfered SharedArrayBuffers to their new Isolate.
101+
// Attach all transferred SharedArrayBuffers to their new Isolate.
102102
for (uint32_t i = 0; i < shared_array_buffers_.size(); ++i) {
103103
Local<SharedArrayBuffer> sab;
104104
if (!shared_array_buffers_[i]->GetSharedArrayBuffer(env, context)
@@ -116,7 +116,7 @@ MaybeLocal<Value> Message::Deserialize(Environment* env,
116116
&delegate);
117117
delegate.deserializer = &deserializer;
118118

119-
// Attach all transfered ArrayBuffers to their new Isolate.
119+
// Attach all transferred ArrayBuffers to their new Isolate.
120120
for (uint32_t i = 0; i < array_buffer_contents_.size(); ++i) {
121121
Local<ArrayBuffer> ab =
122122
ArrayBuffer::New(env->isolate(),
@@ -234,7 +234,7 @@ class SerializerDelegate : public ValueSerializer::Delegate {
234234
friend class worker::Message;
235235
};
236236

237-
} // anynomous namespace
237+
} // anonymous namespace
238238

239239
Maybe<bool> Message::Serialize(Environment* env,
240240
Local<Context> context,

0 commit comments

Comments
 (0)