Browse Source

[master] minor editorial fixes: typo in comments, missing braces (style matter)
skipping review.

JINMEI Tatuya 14 years ago
parent
commit
1c8557996b
2 changed files with 5 additions and 4 deletions
  1. 4 3
      src/lib/asiolink/tcp_server.cc
  2. 1 1
      src/lib/asiolink/udp_server.cc

+ 4 - 3
src/lib/asiolink/tcp_server.cc

@@ -65,7 +65,7 @@ TCPServer::TCPServer(io_service& io_service,
 
 void
 TCPServer::operator()(error_code ec, size_t length) {
-    /// Because the coroutine reeentry block is implemented as
+    /// Because the coroutine reentry block is implemented as
     /// a switch statement, inline variable declarations are not
     /// permitted.  Certain variables used below can be declared here.
 
@@ -196,9 +196,10 @@ TCPServer::asyncLookup() {
 }
 
 void TCPServer::stop() {
-    //server should not be stopped twice
-    if (stopped_by_hand_)
+    // server should not be stopped twice
+    if (stopped_by_hand_) {
         return;
+    }
 
     stopped_by_hand_ = true;
     acceptor_->close();

+ 1 - 1
src/lib/asiolink/udp_server.cc

@@ -169,7 +169,7 @@ UDPServer::UDPServer(io_service& io_service, const ip::address& addr,
 /// pattern; see internal/coroutine.h for details.
 void
 UDPServer::operator()(error_code ec, size_t length) {
-    /// Because the coroutine reeentry block is implemented as
+    /// Because the coroutine reentry block is implemented as
     /// a switch statement, inline variable declarations are not
     /// permitted.  Certain variables used below can be declared here.