Skip to content

Commit dc2b07b

Browse files
brandon93sjasnell
authored andcommitted
benchmark,doc,lib,src,test,tools: fix typos
PR-URL: #23302 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
1 parent 5217c52 commit dc2b07b

36 files changed

+47
-47
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
@@ -128,7 +128,7 @@
128128

129129
const browserGlobals = !process._noBrowserGlobals;
130130
if (browserGlobals) {
131-
// we are setting this here to foward it to the inspector later
131+
// we are setting this here to forward it to the inspector later
132132
perThreadSetup.originalConsole = global.console;
133133
setupGlobalTimeouts();
134134
setupGlobalConsole();

lib/internal/http2/core.js

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,10 +576,10 @@ void Environment::RunTimers(uv_timer_t* handle) {
576576
ret = cb->Call(env->context(), process, 1, &arg);
577577
} while (ret.IsEmpty() && env->can_call_into_js());
578578

579-
// NOTE(apapirovski): If it ever becomes possibble that `call_into_js` above
579+
// NOTE(apapirovski): If it ever becomes possible that `call_into_js` above
580580
// is reset back to `true` after being previously set to `false` then this
581581
// code becomes invalid and needs to be rewritten. Otherwise catastrophic
582-
// timers corruption will occurr and all timers behaviour will become
582+
// timers corruption will occur and all timers behaviour will become
583583
// entirely unpredictable.
584584
if (ret.IsEmpty())
585585
return;

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
@@ -2515,7 +2515,7 @@ int VerifyCallback(int preverify_ok, X509_STORE_CTX* ctx) {
25152515
//
25162516
// Since we cannot perform I/O quickly enough in this callback, we ignore
25172517
// all preverify_ok errors and let the handshake continue. It is
2518-
// imparative that the user use Connection::VerifyError after the
2518+
// imperative that the user use Connection::VerifyError after the
25192519
// 'secure' callback has been made.
25202520
return 1;
25212521
}

0 commit comments

Comments
 (0)