doc: fix comments in tls_wrap.cc and _http_client.js
authorMinwoo Jung <jmwsoft@gmail.com>
Sat, 22 Aug 2015 06:07:09 +0000 (23:07 -0700)
committerJames M Snell <jasnell@gmail.com>
Sun, 23 Aug 2015 16:01:22 +0000 (09:01 -0700)
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

lib/_http_client.js
src/tls_wrap.cc

index e705117..e490dce 100644 (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');
index e4b0dc4..381690c 100644 (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);
   }