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 a5a00d7 commit 70e8476Copy full SHA for 70e8476
src/io/stdin.rs
@@ -151,14 +151,14 @@ impl Stdin {
151
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
152
/// #
153
/// use async_std::io;
154
- /// use std::io::Read;
+ /// use crate::async_std::prelude::*;
155
///
156
/// let mut buffer = String::new();
157
158
/// let stdin = io::stdin();
159
/// let mut handle = stdin.lock().await;
160
161
- /// handle.read_to_string(&mut buffer)?;
+ /// handle.read_to_string(&mut buffer).await?;
162
163
/// # Ok(()) }) }
164
/// ```
0 commit comments