From 82e28668f677b2b49664414a9fe46b4d093614f4 Mon Sep 17 00:00:00 2001 From: Rafael Bachmann Date: Fri, 13 Dec 2024 22:23:49 +0100 Subject: [PATCH] Minor simplification in lib.rs doc string --- tokio/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/lib.rs b/tokio/src/lib.rs index 7b84b54b882..b85921f31de 100644 --- a/tokio/src/lib.rs +++ b/tokio/src/lib.rs @@ -284,7 +284,7 @@ //! loop { //! let n = match socket.read(&mut buf).await { //! // socket closed -//! Ok(n) if n == 0 => return, +//! Ok(0) => return, //! Ok(n) => n, //! Err(e) => { //! eprintln!("failed to read from socket; err = {:?}", e);