diff options
author | Tobias Nießen <tniessen@tnie.de> | 2023-02-25 21:29:59 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2023-03-14 07:54:15 +0100 |
commit | 345c8c343b979b9b7aa745bf13a7af757f17db03 (patch) | |
tree | 7225e08fa97c6e30aeae75a81da5da4e80a179b6 | |
parent | 1a23eab6144b43170186142fbd09dfd76fc648f6 (diff) | |
download | node-new-345c8c343b979b9b7aa745bf13a7af757f17db03.tar.gz |
lib,src: fix a few typos in comments
PR-URL: https://github.com/nodejs/node/pull/46835
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
-rw-r--r-- | lib/_http_client.js | 4 | ||||
-rw-r--r-- | lib/_tls_wrap.js | 2 | ||||
-rw-r--r-- | src/base_object.h | 2 | ||||
-rw-r--r-- | src/dataqueue/queue.h | 2 | ||||
-rw-r--r-- | src/node_contextify.cc | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/lib/_http_client.js b/lib/_http_client.js index e85913b020..024834c7ec 100644 --- a/lib/_http_client.js +++ b/lib/_http_client.js @@ -779,8 +779,8 @@ function responseOnTimeout() { res.emit('timeout'); } -// This function is necessary in the case where we receive the entire reponse -// from server before we finish sending out the request +// This function is necessary in the case where we receive the entire response +// from the server before we finish sending out the request. function requestOnFinish() { const req = this; diff --git a/lib/_tls_wrap.js b/lib/_tls_wrap.js index eb3642441e..e8f926d4c4 100644 --- a/lib/_tls_wrap.js +++ b/lib/_tls_wrap.js @@ -426,7 +426,7 @@ function onerror(err) { // so self._tlsError will return null instead of actual error // Set closing the socket after emitting an event since the socket needs to - // be accessible when the `tlsClientError` event is emmited. + // be accessible when the `tlsClientError` event is emitted. owner._closeAfterHandlingError = true; owner.destroy(err); } else if (owner._tlsOptions?.isServer && diff --git a/src/base_object.h b/src/base_object.h index 719f1d38dd..4ac644a034 100644 --- a/src/base_object.h +++ b/src/base_object.h @@ -250,7 +250,7 @@ inline T* Unwrap(v8::Local<v8::Value> obj) { // reset to nullptr once the BaseObject is destroyed. // The API matches std::shared_ptr closely. However, this class is not thread // safe, that is, we can't have different BaseObjectPtrImpl instances in -// different threads refering to the same BaseObject instance. +// different threads referring to the same BaseObject instance. template <typename T, bool kIsWeak> class BaseObjectPtrImpl final { public: diff --git a/src/dataqueue/queue.h b/src/dataqueue/queue.h index a1a297a8fc..9bf34ffb65 100644 --- a/src/dataqueue/queue.h +++ b/src/dataqueue/queue.h @@ -117,7 +117,7 @@ namespace node { // // For idempotent DataQueues, any number of readers can be created and // pull concurrently from the same DataQueue. The DataQueue can be read -// multiple times. Succesful reads should always produce the same result. +// multiple times. Successful reads should always produce the same result. // If, for whatever reason, the implementation cannot ensure that the // data read will remain the same, the read must fail with an error status. // diff --git a/src/node_contextify.cc b/src/node_contextify.cc index 2a4d4618db..bd46a4a1e5 100644 --- a/src/node_contextify.cc +++ b/src/node_contextify.cc @@ -246,7 +246,7 @@ BaseObjectPtr<ContextifyContext> ContextifyContext::New( const ContextOptions& options) { HandleScope scope(env->isolate()); // This only initializes part of the context. The primordials are - // only initilaized when needed because even deserializing them slows + // only initialized when needed because even deserializing them slows // things down significantly and they are only needed in rare occasions // in the vm contexts. if (InitializeContextRuntime(v8_context).IsNothing()) { |