Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-cn authored Feb 16, 2020
1 parent 93ddf82 commit fb2d307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/connector.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ connector->startWorkerThread();
connector->asyncConnect({
ConnectOption::WithAddr("127.0.0.1", 9999),
ConnectOption::WithTimeout(std::chrono::seconds(1)),
ConnectOption::WithCompletedCallback([](TcpSocket::PTR socket) {
ConnectOption::WithCompletedCallback([](TcpSocket::Ptr socket) {
std::cout << "connect success" << std::endl;
// 在此我们就可以将 socket 用于网络库的其他部分,比如用于`TCPService::addTcpConnection`
}),
Expand Down

0 comments on commit fb2d307

Please sign in to comment.