Rename get_uri to uri (#393)

* Rename `get_uri` to `uri`

* Fix doc test
This commit is contained in:
Lucio Franco
2020-07-10 11:45:33 -04:00
committed by GitHub
parent c9b3c7f11c
commit 98bcc339b1
+2 -2
View File
@@ -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
}
}