melib/connections: remove stale failing doc code example
Tests / Test on ${{ matrix.build }} (linux-amd64, ubuntu-latest, stable, x86_64-unknown-linux-gnu) (push) Failing after 7m50s Details

This leftover doc test/example was failing to compile, so remove it.
pull/280/head
Manos Pitsidianakis 2023-08-16 19:49:44 +03:00
parent 97d3686815
commit df638cceec
Signed by: Manos Pitsidianakis
GPG Key ID: 7729C7707F7E09D0
1 changed files with 0 additions and 9 deletions

View File

@ -30,15 +30,6 @@ use socket2::{Domain, SockAddr, Socket};
/// Connectivity Using
/// Concurrency](https://datatracker.ietf.org/doc/html/rfc8305) to
/// connect.
///
/// Examples
/// ========
///
/// ```no_run
/// let socket_addr = ("www.example", 80);
/// let tcp_stream = connect(socket_addr, None)?;
/// # Ok::<(), std::io::Error>(())
/// ```
pub fn connect<A: ToSocketAddrs>(addr: A, timeout: Option<Duration>) -> Result<TcpStream> {
let mut happy = HappyEyeballs::new()?;
let start = Instant::now();