From 09437e01469e833433772aaabca1a60cd8f791b1 Mon Sep 17 00:00:00 2001 From: Minwoo Jung Date: Fri, 21 Aug 2015 23:07:09 -0700 Subject: [PATCH] doc: fix comments in tls_wrap.cc and _http_client.js fixed grammatically wrong expressions to make it clear Reviewed By: James M Snell PR-URL: https://github.com/nodejs/node/pull/2490 PR-URL: https://github.com/nodejs/node/pull/2489 --- lib/_http_client.js | 2 +- src/tls_wrap.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/_http_client.js b/lib/_http_client.js index e705117ab63c82..e490dce5d821d6 100644 --- a/lib/_http_client.js +++ b/lib/_http_client.js @@ -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'); diff --git a/src/tls_wrap.cc b/src/tls_wrap.cc index e4b0dc49c691d7..381690c79d71ca 100644 --- a/src/tls_wrap.cc +++ b/src/tls_wrap.cc @@ -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); }