Skip to content

Commit 0f10c87

Browse files
authored
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 21fcfcd commit 0f10c87

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
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 &&

lib/events.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ function on(emitter, event, options = kEmptyObject) {
11071107
return highWatermark;
11081108
},
11091109
/**
1110-
* It checks wether the emitter is paused by the watermark controller or not
1110+
* It checks whether the emitter is paused by the watermark controller or not
11111111
*/
11121112
get isPaused() {
11131113
return paused;

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
@@ -247,7 +247,7 @@ BaseObjectPtr<ContextifyContext> ContextifyContext::New(
247247
const ContextOptions& options) {
248248
HandleScope scope(env->isolate());
249249
// This only initializes part of the context. The primordials are
250-
// only initilaized when needed because even deserializing them slows
250+
// only initialized when needed because even deserializing them slows
251251
// things down significantly and they are only needed in rare occasions
252252
// in the vm contexts.
253253
if (InitializeContextRuntime(v8_context).IsNothing()) {

0 commit comments

Comments
 (0)