From fb2d307bd692b03ca80ddaeb96430d0bd3501366 Mon Sep 17 00:00:00 2001 From: MR <19818121+mr-cn@users.noreply.github.com> Date: Sun, 16 Feb 2020 21:57:46 +0800 Subject: [PATCH] fix typo --- docs/connector.zh-cn.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/connector.zh-cn.md b/docs/connector.zh-cn.md index 1cf11d5b..65789dc4 100644 --- a/docs/connector.zh-cn.md +++ b/docs/connector.zh-cn.md @@ -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` }),