Commit 1c855799 authored by JINMEI Tatuya's avatar JINMEI Tatuya

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

skipping review.
parent 242cb681
......@@ -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();
......
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment