Skip to content

Commit 09437e0

Browse files
JungMinurvagg
authored andcommitted
doc: fix comments in tls_wrap.cc and _http_client.js
fixed grammatically wrong expressions to make it clear Reviewed By: James M Snell <[email protected]> PR-URL: #2490 PR-URL: #2489
1 parent 4f8e34c commit 09437e0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/_http_client.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ function socketCloseListener() {
216216
// is a no-op if no final chunk remains.
217217
socket.read();
218218

219-
// NOTE: Its important to get parser here, because it could be freed by
219+
// NOTE: It's important to get parser here, because it could be freed by
220220
// the `socketOnData`.
221221
var parser = socket.parser;
222222
req.emit('close');

src/tls_wrap.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -561,8 +561,8 @@ int TLSWrap::DoWrite(WriteWrap* w,
561561
}
562562
if (empty) {
563563
ClearOut();
564-
// However if there any data that should be written to socket,
565-
// callback should not be invoked immediately
564+
// However, if there is any data that should be written to the socket,
565+
// the callback should not be invoked immediately
566566
if (BIO_pending(enc_out_) == 0)
567567
return stream_->DoWrite(w, bufs, count, send_handle);
568568
}

0 commit comments

Comments
 (0)