Skip to content

Commit

Permalink
Merge pull request #44 from mr-cn/patch-1
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
IronsDu committed Feb 16, 2020
2 parents 93ddf82 + fb2d307 commit 5df8f95
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 5df8f95

Please sign in to comment.