mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-28 23:38:20 +01:00
Fix typos in RequestParts docstrings (#1147)
This commit is contained in:
parent
605980b21c
commit
bc55362ba8
1 changed files with 2 additions and 2 deletions
|
@ -176,7 +176,7 @@ impl<B> RequestParts<B> {
|
|||
Ok(req)
|
||||
}
|
||||
|
||||
/// Gets a reference the request method.
|
||||
/// Gets a reference to the request method.
|
||||
pub fn method(&self) -> &Method {
|
||||
&self.method
|
||||
}
|
||||
|
@ -186,7 +186,7 @@ impl<B> RequestParts<B> {
|
|||
&mut self.method
|
||||
}
|
||||
|
||||
/// Gets a reference the request URI.
|
||||
/// Gets a reference to the request URI.
|
||||
pub fn uri(&self) -> &Uri {
|
||||
&self.uri
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue