aboutsummaryrefslogtreecommitdiffstats
path: root/examples/smol.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/smol.rs')
-rw-r--r--examples/smol.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/smol.rs b/examples/smol.rs
index 3f743bf..dd6fba3 100644
--- a/examples/smol.rs
+++ b/examples/smol.rs
@@ -47,7 +47,7 @@ async fn run(
loop {
match stdin.read(&mut buf).await {
Ok(bytes) => {
- child.pty().write(&buf[..bytes]).await.unwrap();
+ child.pty().write_all(&buf[..bytes]).await.unwrap();
}
Err(e) => {
eprintln!("stdin read failed: {:?}", e);