We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf9ee88 commit 556d799Copy full SHA for 556d799
src/lib.rs
@@ -152,6 +152,8 @@
152
//! Await two futures concurrently, and return a tuple of their output:
153
//!
154
//! ```
155
+//! use async_std::prelude::*;
156
+//!
157
//! #[async_std::main]
158
//! async fn main() {
159
//! let a = async { 1u8 };
@@ -167,7 +169,7 @@
167
169
168
170
171
//! async fn main() -> std::io::Result<()> {
-//! let mut socket = UdpSocket::bind("127.0.0.1:8080")?;
172
+//! let socket = UdpSocket::bind("127.0.0.1:8080").await?;
173
//! println!("Listening on {}", socket.local_addr()?);
174
175
//! let mut buf = vec![0u8; 1024];
0 commit comments