diff --git a/tokio/src/net/windows/named_pipe.rs b/tokio/src/net/windows/named_pipe.rs index 81148482537..0b312f896f1 100644 --- a/tokio/src/net/windows/named_pipe.rs +++ b/tokio/src/net/windows/named_pipe.rs @@ -75,7 +75,8 @@ use self::doc::*; /// let server = tokio::spawn(async move { /// loop { /// // Wait for a client to connect. -/// let connected = server.connect().await?; +/// server.connect().await?; +/// let connected_client = server; /// /// // Construct the next server to be connected before sending the one /// // we already have of onto a task. This ensures that the server