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
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
parent
97d3686815
commit
df638cceec
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue