Skip to content

Commit 345c8c3

Browse files
tniessentargos
authored andcommitted
lib,src: fix a few typos in comments
PR-URL: #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>
1 parent 1a23eab commit 345c8c3

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

lib/_http_client.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -779,8 +779,8 @@ function responseOnTimeout() {
779779
res.emit('timeout');
780780
}
781781

782-
// This function is necessary in the case where we receive the entire reponse
783-
// from server before we finish sending out the request
782+
// This function is necessary in the case where we receive the entire response
783+
// from the server before we finish sending out the request.
784784
function requestOnFinish() {
785785
const req = this;
786786

lib/_tls_wrap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ function onerror(err) {
426426
// so self._tlsError will return null instead of actual error
427427

428428
// Set closing the socket after emitting an event since the socket needs to
429-
// be accessible when the `tlsClientError` event is emmited.
429+
// be accessible when the `tlsClientError` event is emitted.
430430
owner._closeAfterHandlingError = true;
431431
owner.destroy(err);
432432
} else if (owner._tlsOptions?.isServer &&

src/base_object.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ inline T* Unwrap(v8::Local<v8::Value> obj) {
250250
// reset to nullptr once the BaseObject is destroyed.
251251
// The API matches std::shared_ptr closely. However, this class is not thread
252252
// safe, that is, we can't have different BaseObjectPtrImpl instances in
253-
// different threads refering to the same BaseObject instance.
253+
// different threads referring to the same BaseObject instance.
254254
template <typename T, bool kIsWeak>
255255
class BaseObjectPtrImpl final {
256256
public:

src/dataqueue/queue.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ namespace node {
117117
//
118118
// For idempotent DataQueues, any number of readers can be created and
119119
// pull concurrently from the same DataQueue. The DataQueue can be read
120-
// multiple times. Succesful reads should always produce the same result.
120+
// multiple times. Successful reads should always produce the same result.
121121
// If, for whatever reason, the implementation cannot ensure that the
122122
// data read will remain the same, the read must fail with an error status.
123123
//

src/node_contextify.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ BaseObjectPtr<ContextifyContext> ContextifyContext::New(
246246
const ContextOptions& options) {
247247
HandleScope scope(env->isolate());
248248
// This only initializes part of the context. The primordials are
249-
// only initilaized when needed because even deserializing them slows
249+
// only initialized when needed because even deserializing them slows
250250
// things down significantly and they are only needed in rare occasions
251251
// in the vm contexts.
252252
if (InitializeContextRuntime(v8_context).IsNothing()) {

0 commit comments

Comments
 (0)