diff --git a/examples/network/doc/src/fortuneserver.qdoc b/examples/network/doc/src/fortuneserver.qdoc index c55a1634e426c9da8f07f172666a499380e620f9..0b110783aa383e8304be129f9b679de7de781ef6 100644 --- a/examples/network/doc/src/fortuneserver.qdoc +++ b/examples/network/doc/src/fortuneserver.qdoc @@ -87,7 +87,7 @@ \snippet fortuneserver/server.cpp 7 - We then call QTcpServer::newPendingConnection(), which returns the + We then call QTcpServer::nextPendingConnection(), which returns the QTcpSocket representing the server side of the connection. By connecting QTcpSocket::disconnected() to QObject::deleteLater(), we ensure that the socket will be deleted after disconnecting.