From 6a0916d1d153e4d66e6a51ea7bbe1006f03fa9c3 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sat, 16 Jan 2021 19:29:23 +0900 Subject: [PATCH] Fix Command::output example --- src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 2adbf17..deec19a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -828,7 +828,10 @@ impl Command { /// # futures_lite::future::block_on(async { /// use async_process::Command; /// - /// let child = Command::new("ls").spawn()?; + /// let output = Command::new("cat") + /// .arg("a.txt") + /// .output() + /// .await?; /// # std::io::Result::Ok(()) }); /// ``` pub fn output(&mut self) -> impl Future> {