Skip to content

Commit

Permalink
doc: fix comments in tls_wrap.cc and _http_client.js
Browse files Browse the repository at this point in the history
fixed grammatically wrong expressions to make it clear

Reviewed By: James M Snell <jasnell@gmail.com>
PR-URL: #2490
PR-URL: #2489
  • Loading branch information
JungMinu authored and rvagg committed Aug 24, 2015
1 parent 4f8e34c commit 09437e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/_http_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ function socketCloseListener() {
// is a no-op if no final chunk remains.
socket.read();

// NOTE: Its important to get parser here, because it could be freed by
// NOTE: It's important to get parser here, because it could be freed by
// the `socketOnData`.
var parser = socket.parser;
req.emit('close');
Expand Down
4 changes: 2 additions & 2 deletions src/tls_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,8 @@ int TLSWrap::DoWrite(WriteWrap* w,
}
if (empty) {
ClearOut();
// However if there any data that should be written to socket,
// callback should not be invoked immediately
// However, if there is any data that should be written to the socket,
// the callback should not be invoked immediately
if (BIO_pending(enc_out_) == 0)
return stream_->DoWrite(w, bufs, count, send_handle);
}
Expand Down

0 comments on commit 09437e0

Please sign in to comment.