]> git.lizzy.rs Git - connect-rs.git/blobdiff - src/tls/client.rs
remove `block_on` in tls-listener
[connect-rs.git] / src / tls / client.rs
index 33a62977d842b96f81ad711d677413f1ffde058b..6285ed1b8d32f58bc9312d2c883f5f72e29db15a 100644 (file)
@@ -12,14 +12,14 @@ impl Connection {
     ///
     /// # Example
     ///
+    /// Please see the [tls-client](https://github.com/sachanganesh/connect-rs/blob/main/examples/tls-client/src/main.rs)
+    /// example program for a more thorough showcase.
+    ///
     /// Basic usage:
     ///
     /// ```ignore
     /// let mut conn = Connection::tls_client("127.0.0.1:3456", "localhost", client_config.into()).await?;
     /// ```
-    ///
-    /// Please see the [tls-client](https://github.com/sachanganesh/connect-rs/blob/main/examples/tls-client/src/main.rs)
-    /// example program for a more thorough showcase.
     pub async fn tls_client<A: ToSocketAddrs + std::fmt::Display>(
         ip_addrs: A,
         domain: &str,