diff --git a/tonic/src/transport/channel/endpoint.rs b/tonic/src/transport/channel/endpoint.rs index 3988b91..c2bcf16 100644 --- a/tonic/src/transport/channel/endpoint.rs +++ b/tonic/src/transport/channel/endpoint.rs @@ -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 } }