lib,src,test: fix comments · nodejs/node@1f01830 · GitHub
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

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

lib/_stream_readable.js

Lines changed: 2 additions & 2 deletions

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

0 commit comments

Comments
 (0)