Skip to content

Commit

Permalink
fix: Request local_addr doc (#831)
Browse files Browse the repository at this point in the history
  • Loading branch information
astoring committed Jul 9, 2024
1 parent b068552 commit e9b3906
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/core/src/http/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,12 +331,12 @@ impl Request {
&mut self.remote_addr
}

/// Get request remote address reference.
/// Get request local address reference.
#[inline]
pub fn local_addr(&self) -> &SocketAddr {
&self.local_addr
}
/// Get mutable request remote address reference.
/// Get mutable request local address reference.
#[inline]
pub fn local_addr_mut(&mut self) -> &mut SocketAddr {
&mut self.local_addr
Expand Down

0 comments on commit e9b3906

Please sign in to comment.