doc: fix comments in tls_wrap.cc and _http_client.js

fixed grammatically wrong expressions to make it clear

Reviewed By: James M Snell <jasnell@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/2490
PR-URL: https://github.com/nodejs/node/pull/2489
This commit is contained in:
Minwoo Jung 2015-08-21 23:07:09 -07:00 committed by James M Snell
parent b897af4558
commit f3c3b23d55
2 changed files with 3 additions and 3 deletions

View File

@ -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');

View File

@ -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);
}