Skip to content

Commit f25af48

Browse files
committed
fix example in readme too
1 parent 0ac7fce commit f25af48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ use wstd::net::TcpListener;
5959
use wstd::runtime::block_on;
6060

6161
fn main() -> io::Result<()> {
62-
block_on(|reactor| async move {
63-
let listener = TcpListener::bind(&reactor, "127.0.0.1:8080").await?;
62+
block_on(async move {
63+
let listener = TcpListener::bind("127.0.0.1:8080").await?;
6464
println!("Listening on {}", listener.local_addr()?);
6565
println!("type `nc localhost 8080` to create a TCP client");
6666

0 commit comments

Comments
 (0)