GeezerVison is showing github.com — benchmark,doc,lib,src,test,tools: fix typos · nodejs/node@2d7e4e0
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: benchmark/crypto/get-ciphers.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, { | 10 | 10 | function main({ n, v }) { | 11 | 11 | const method = require(v).getCiphers; | 12 | 12 | var i = 0; | 13 | | - // First call to getChipers will dominate the results | | 13 | + // First call to getCiphers will dominate the results | 14 | 14 | if (n > 1) { | 15 | 15 | for (; i < n; i++) | 16 | 16 | method(); | |
Collapse file Copy file name to clipboardExpand all lines: doc/api/n-api.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1757,7 +1757,7 @@ added: v10.7.0 | 1757 | 1757 |
| 1758 | 1758 | ```C | 1759 | 1759 | napi_status napi_create_bigint_uint64(napi_env env, | 1760 | | - uint64_t vaue, | | 1760 | + uint64_t value, | 1761 | 1761 | napi_value* result); | 1762 | 1762 | ``` | 1763 | 1763 |
| |
Collapse file Copy file name to clipboardExpand all lines: lib/internal/bootstrap/node.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 137 | 137 |
| 138 | 138 | const browserGlobals = !process._noBrowserGlobals; | 139 | 139 | 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 | 141 | 141 | perThreadSetup.originalConsole = global.console; | 142 | 142 | setupGlobalTimeouts(); | 143 | 143 | setupGlobalConsole(); | |
Collapse file Copy file name to clipboardExpand all lines: lib/internal/http2/core.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -762,7 +762,7 @@ const proxySocketHandler = { | 762 | 762 | // indicate if the ping was successful or not. The duration indicates the | 763 | 763 | // number of milliseconds elapsed since the ping was sent and the ack | 764 | 764 | // 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. | 766 | 766 | function pingCallback(cb) { | 767 | 767 | return function pingCallback(ack, duration, payload) { | 768 | 768 | if (ack) { | |
Collapse file Copy file name to clipboardExpand all lines: lib/internal/repl/recoverable.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -5,7 +5,7 @@ const { tokTypes: tt } = acorn; | 5 | 5 |
| 6 | 6 | // If the error is that we've unexpectedly ended the input, | 7 | 7 | // 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, | 9 | 9 | // but may be needed in the future. | 10 | 10 | function isRecoverableError(e, code) { | 11 | 11 | let recoverable = false; | |
Collapse file Copy file name to clipboardExpand all lines: src/aliased_buffer.h +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -14,7 +14,7 @@ namespace node { | 14 | 14 | * going through JS, and the data is then available to user's via the exposed | 15 | 15 | * JS object. | 16 | 16 | * | 17 | | - * While this technique is computationaly efficient, it is effectively a | | 17 | + * While this technique is computationally efficient, it is effectively a | 18 | 18 | * write to JS program state w/out going through the standard | 19 | 19 | * (monitored) API. Thus any VM capabilities to detect the modification are | 20 | 20 | * circumvented. | |
Collapse file Copy file name to clipboardExpand all lines: src/inspector_agent.h +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -57,7 +57,7 @@ class Agent { | 57 | 57 |
| 58 | 58 | bool IsListening() { return io_ != nullptr; } | 59 | 59 | // 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 | 61 | 61 | // --inspect command line flag) or if inspector JS API had been used. | 62 | 62 | bool IsActive(); | 63 | 63 |
| |
Collapse file Copy file name to clipboardExpand all lines: src/node_api.h +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -598,7 +598,7 @@ NAPI_EXTERN napi_status napi_adjust_external_memory(napi_env env, | 598 | 598 | int64_t change_in_bytes, | 599 | 599 | int64_t* adjusted_value); | 600 | 600 |
| 601 | | -// Runnig a script | | 601 | +// Running a script | 602 | 602 | NAPI_EXTERN napi_status napi_run_script(napi_env env, | 603 | 603 | napi_value script, | 604 | 604 | napi_value* result); | |
Collapse file Copy file name to clipboardExpand all lines: src/node_crypto.cc +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -2511,7 +2511,7 @@ int VerifyCallback(int preverify_ok, X509_STORE_CTX* ctx) { | 2511 | 2511 | // | 2512 | 2512 | // Since we cannot perform I/O quickly enough in this callback, we ignore | 2513 | 2513 | // 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 | 2515 | 2515 | // 'secure' callback has been made. | 2516 | 2516 | return 1; | 2517 | 2517 | } | |
Collapse file Copy file name to clipboardExpand all lines: src/node_messaging.cc +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -98,7 +98,7 @@ MaybeLocal<Value> Message::Deserialize(Environment* env, | 98 | 98 | message_ports_.clear(); | 99 | 99 |
| 100 | 100 | 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. | 102 | 102 | for (uint32_t i = 0; i < shared_array_buffers_.size(); ++i) { | 103 | 103 | Local<SharedArrayBuffer> sab; | 104 | 104 | if (!shared_array_buffers_[i]->GetSharedArrayBuffer(env, context) | @@ -116,7 +116,7 @@ MaybeLocal<Value> Message::Deserialize(Environment* env, | 116 | 116 | &delegate); | 117 | 117 | delegate.deserializer = &deserializer; | 118 | 118 |
| 119 | | - // Attach all transfered ArrayBuffers to their new Isolate. | | 119 | + // Attach all transferred ArrayBuffers to their new Isolate. | 120 | 120 | for (uint32_t i = 0; i < array_buffer_contents_.size(); ++i) { | 121 | 121 | Local<ArrayBuffer> ab = | 122 | 122 | ArrayBuffer::New(env->isolate(), | @@ -234,7 +234,7 @@ class SerializerDelegate : public ValueSerializer::Delegate { | 234 | 234 | friend class worker::Message; | 235 | 235 | }; | 236 | 236 |
| 237 | | -} // anynomous namespace | | 237 | +} // anonymous namespace | 238 | 238 |
| 239 | 239 | Maybe<bool> Message::Serialize(Environment* env, | 240 | 240 | Local<Context> context, | |
|