File tree 1 file changed +9
-8
lines changed
1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -713,16 +713,17 @@ impl Child {
713
713
/// ```should_panic
714
714
/// use std::process::{Command, Stdio};
715
715
///
716
- /// let mut child = Command::new("/bin/cat")
717
- /// .arg("file.txt")
718
- /// .stdout(Stdio::piped())
719
- /// .spawn()
720
- /// .expect("failed to execute child");
716
+ /// let child = Command::new("/bin/cat")
717
+ /// .arg("file.txt")
718
+ /// .stdout(Stdio::piped())
719
+ /// .spawn()
720
+ /// .expect("failed to execute child");
721
721
///
722
- /// let ecode = child.wait_with_output()
723
- /// .expect("failed to wait on child");
722
+ /// let output = child
723
+ /// .wait_with_output()
724
+ /// .expect("failed to wait on child");
724
725
///
725
- /// assert!(ecode .status.success());
726
+ /// assert!(output .status.success());
726
727
/// ```
727
728
///
728
729
#[ stable( feature = "process" , since = "1.0.0" ) ]
You can’t perform that action at this time.
0 commit comments