Skip to content

Commit 1f01830

Browse files
tniessenMylesBorins
authored andcommitted
lib,src,test: fix comments
PR-URL: #20846 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
1 parent 24286c4 commit 1f01830

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

lib/_stream_readable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ Readable.prototype.removeListener = function(ev, fn) {
834834

835835
if (ev === 'readable') {
836836
// We need to check if there is someone still listening to
837-
// to readable and reset the state. However this needs to happen
837+
// readable and reset the state. However this needs to happen
838838
// after readable has been emitted but before I/O (nextTick) to
839839
// support once('readable', fn) cycles. This means that calling
840840
// resume within the same tick will have no
@@ -850,7 +850,7 @@ Readable.prototype.removeAllListeners = function(ev) {
850850

851851
if (ev === 'readable' || ev === undefined) {
852852
// We need to check if there is someone still listening to
853-
// to readable and reset the state. However this needs to happen
853+
// readable and reset the state. However this needs to happen
854854
// after readable has been emitted but before I/O (nextTick) to
855855
// support once('readable', fn) cycles. This means that calling
856856
// resume within the same tick will have no

src/node.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2384,7 +2384,7 @@ static void EnvGetter(Local<Name> property,
23842384
arraysize(buffer));
23852385
// If result >= sizeof buffer the buffer was too small. That should never
23862386
// happen. If result == 0 and result != ERROR_SUCCESS the variable was not
2387-
// not found.
2387+
// found.
23882388
if ((result > 0 || GetLastError() == ERROR_SUCCESS) &&
23892389
result < arraysize(buffer)) {
23902390
const uint16_t* two_byte_buffer = reinterpret_cast<const uint16_t*>(buffer);

src/stream_base-inl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ inline StreamResource::~StreamResource() {
7070
StreamListener* listener = listener_;
7171
listener->OnStreamDestroy();
7272
// Remove the listener if it didn’t remove itself. This makes the logic
73-
// logic in `OnStreamDestroy()` implementations easier, because they
73+
// in `OnStreamDestroy()` implementations easier, because they
7474
// may call generic cleanup functions which can just remove the
7575
// listener unconditionally.
7676
if (listener == listener_)

src/tracing/node_trace_buffer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ bool NodeTraceBuffer::Flush() {
134134
}
135135

136136
// Attempts to set current_buf_ such that it references a buffer that can
137-
// can write at least one trace event. If both buffers are unavailable this
137+
// write at least one trace event. If both buffers are unavailable this
138138
// method returns false; otherwise it returns true.
139139
bool NodeTraceBuffer::TryLoadAvailableBuffer() {
140140
InternalTraceBuffer* prev_buf = current_buf_.load();

src/tracing/node_trace_writer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ void NodeTraceWriter::WriteToFile(std::string&& str, int highest_request_id) {
153153
write_req->str.length());
154154
request_mutex_.Lock();
155155
// Manage a queue of WriteRequest objects because the behavior of uv_write is
156-
// is undefined if the same WriteRequest object is used more than once
156+
// undefined if the same WriteRequest object is used more than once
157157
// between WriteCb calls. In addition, this allows us to keep track of the id
158158
// of the latest write request that actually been completed.
159159
write_req_queue_.push(write_req);

test/sequential/test-timers-blocking-callback.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* This is a regression test for
55
* https://github.com/nodejs/node-v0.x-archive/issues/15447 and
6-
* and https://github.com/nodejs/node-v0.x-archive/issues/9333.
6+
* https://github.com/nodejs/node-v0.x-archive/issues/9333.
77
*
88
* When a timer is added in another timer's callback, its underlying timer
99
* handle was started with a timeout that was actually incorrect.

0 commit comments

Comments
 (0)