Rename get_uri to uri (#393)
* Rename `get_uri` to `uri` * Fix doc test
This commit is contained in:
@@ -257,9 +257,9 @@ impl Endpoint {
|
||||
/// # use http::Uri;
|
||||
/// let endpoint = Endpoint::from_static("https://example.com");
|
||||
///
|
||||
/// assert_eq!(endpoint.get_uri(), &Uri::from_static("https://example.com"));
|
||||
/// assert_eq!(endpoint.uri(), &Uri::from_static("https://example.com"));
|
||||
/// ```
|
||||
pub fn get_uri(&self) -> &Uri {
|
||||
pub fn uri(&self) -> &Uri {
|
||||
&self.uri
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user