mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-07 00:00:12 +02:00
Fix typos in RequestParts docstrings (#1147)
This commit is contained in:
committed by
David Pedersen
parent
a4a298cf88
commit
d11f3fbeea
@@ -176,7 +176,7 @@ impl<B> RequestParts<B> {
|
|||||||
Ok(req)
|
Ok(req)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Gets a reference the request method.
|
/// Gets a reference to the request method.
|
||||||
pub fn method(&self) -> &Method {
|
pub fn method(&self) -> &Method {
|
||||||
&self.method
|
&self.method
|
||||||
}
|
}
|
||||||
@@ -186,7 +186,7 @@ impl<B> RequestParts<B> {
|
|||||||
&mut self.method
|
&mut self.method
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Gets a reference the request URI.
|
/// Gets a reference to the request URI.
|
||||||
pub fn uri(&self) -> &Uri {
|
pub fn uri(&self) -> &Uri {
|
||||||
&self.uri
|
&self.uri
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user