Skip to content

Commit d537261

Browse files
committed
Some fixes in examples
1 parent 1fd1b53 commit d537261

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ use async_std::net::TcpStream;
1515

1616
let tcp_stream = TcpStream::connect("rust-lang.org:443");
1717
let connector = TlsConnector::default();
18-
let tls_stream = connector::connect("www.rust-lang.org")?.await?;
18+
let handshake = connector::connect("www.rust-lang.org")?;
19+
let mut tls_stream = handshake.await?;
1920

2021
// ...
2122
```

examples/client/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use async_tls::TlsConnector;
77
use futures::io::AsyncWriteExt;
88
use std::net::ToSocketAddrs;
99
use structopt::StructOpt;
10-
1110
#[derive(StructOpt)]
1211
struct Options {
1312
/// The host to connect to

0 commit comments

Comments
 (0)