doc: fix mis-named binding & remove not needed mut
This commit is contained in:
parent
a94881563c
commit
1253e82b7f
@ -713,16 +713,17 @@ impl Child {
|
||||
/// ```should_panic
|
||||
/// use std::process::{Command, Stdio};
|
||||
///
|
||||
/// let mut child = Command::new("/bin/cat")
|
||||
/// .arg("file.txt")
|
||||
/// .stdout(Stdio::piped())
|
||||
/// .spawn()
|
||||
/// .expect("failed to execute child");
|
||||
/// let child = Command::new("/bin/cat")
|
||||
/// .arg("file.txt")
|
||||
/// .stdout(Stdio::piped())
|
||||
/// .spawn()
|
||||
/// .expect("failed to execute child");
|
||||
///
|
||||
/// let ecode = child.wait_with_output()
|
||||
/// .expect("failed to wait on child");
|
||||
/// let output = child
|
||||
/// .wait_with_output()
|
||||
/// .expect("failed to wait on child");
|
||||
///
|
||||
/// assert!(ecode.status.success());
|
||||
/// assert!(output.status.success());
|
||||
/// ```
|
||||
///
|
||||
#[stable(feature = "process", since = "1.0.0")]
|
||||
|
Loading…
x
Reference in New Issue
Block a user