summaryrefslogtreecommitdiff
path: root/src/tracing
diff options
context:
space:
mode:
authorTobias Nießen <tniessen@tnie.de>2018-05-20 12:13:03 +0200
committerAnatoli Papirovski <apapirovski@mac.com>2018-05-22 12:35:17 +0400
commite3166554684ccba7f4a16fc827f8cd048e2d2c84 (patch)
tree8cebe7277b4202778290c9b171b8365ed4b7d3e0 /src/tracing
parenta3d174c525980cd5ad7a040fcacbe9de9f024905 (diff)
downloadnode-new-e3166554684ccba7f4a16fc827f8cd048e2d2c84.tar.gz
lib,src,test: fix comments
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'src/tracing')
-rw-r--r--src/tracing/node_trace_buffer.cc2
-rw-r--r--src/tracing/node_trace_writer.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tracing/node_trace_buffer.cc b/src/tracing/node_trace_buffer.cc
index 1765b88df1..6e552d659a 100644
--- a/src/tracing/node_trace_buffer.cc
+++ b/src/tracing/node_trace_buffer.cc
@@ -134,7 +134,7 @@ bool NodeTraceBuffer::Flush() {
}
// Attempts to set current_buf_ such that it references a buffer that can
-// can write at least one trace event. If both buffers are unavailable this
+// write at least one trace event. If both buffers are unavailable this
// method returns false; otherwise it returns true.
bool NodeTraceBuffer::TryLoadAvailableBuffer() {
InternalTraceBuffer* prev_buf = current_buf_.load();
diff --git a/src/tracing/node_trace_writer.cc b/src/tracing/node_trace_writer.cc
index 88ff3e6e7c..a2f7bebfc7 100644
--- a/src/tracing/node_trace_writer.cc
+++ b/src/tracing/node_trace_writer.cc
@@ -153,7 +153,7 @@ void NodeTraceWriter::WriteToFile(std::string&& str, int highest_request_id) {
write_req->str.length());
request_mutex_.Lock();
// Manage a queue of WriteRequest objects because the behavior of uv_write is
- // is undefined if the same WriteRequest object is used more than once
+ // undefined if the same WriteRequest object is used more than once
// between WriteCb calls. In addition, this allows us to keep track of the id
// of the latest write request that actually been completed.
write_req_queue_.push(write_req);