Fixed typo in docs: connnection => connection

This commit is contained in:
Wladimir Palant 2024-06-10 16:29:00 +02:00
parent 31d7b63ed7
commit bbef4bdd75
2 changed files with 3 additions and 3 deletions

View file

@ -365,7 +365,7 @@ impl Session {
}
}
/// Return the client (peer) address of the connnection.
/// Return the client (peer) address of the connection.
pub fn client_addr(&self) -> Option<&SocketAddr> {
match self {
Self::H1(s) => s.client_addr(),

View file

@ -783,7 +783,7 @@ impl HttpSession {
&self.digest
}
/// Return the client (peer) address of the underlying connnection.
/// Return the client (peer) address of the underlying connection.
pub fn client_addr(&self) -> Option<&SocketAddr> {
self.digest()
.socket_digest
@ -791,7 +791,7 @@ impl HttpSession {
.map(|d| d.peer_addr())?
}
/// Return the server (local) address of the underlying connnection.
/// Return the server (local) address of the underlying connection.
pub fn server_addr(&self) -> Option<&SocketAddr> {
self.digest()
.socket_digest