diff --git a/axum/src/extract/ws.rs b/axum/src/extract/ws.rs index 8923ad92..eef1f681 100644 --- a/axum/src/extract/ws.rs +++ b/axum/src/extract/ws.rs @@ -314,7 +314,7 @@ pub struct WebSocket { impl WebSocket { /// Receive another message. /// - /// Returns `None` if the stream stream has closed. + /// Returns `None` if the stream has closed. pub async fn recv(&mut self) -> Option> { self.next().await } diff --git a/axum/src/lib.rs b/axum/src/lib.rs index e7fd2880..635cabdb 100644 --- a/axum/src/lib.rs +++ b/axum/src/lib.rs @@ -262,7 +262,7 @@ //! # }; //! ``` //! -//! The downside to this approach is that its a little more verbose than using +//! The downside to this approach is that it's a little more verbose than using //! extensions. //! //! # Building integrations for axum