File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -41,12 +41,12 @@ use thread;
4141/// use std::process::Command;
4242///
4343/// let mut child = Command::new("/bin/cat")
44- /// .arg("file.txt")
45- /// .spawn()
46- /// .unwrap_or_else(|e| { panic!("failed to execute child: {}", e) });
44+ /// .arg("file.txt")
45+ /// .spawn()
46+ /// .unwrap_or_else(|e| { panic!("failed to execute child: {}", e) });
4747///
4848/// let ecode = child.wait()
49- /// .unwrap_or_else(|e| { panic!("failed to wait on child: {}", e) });
49+ /// .unwrap_or_else(|e| { panic!("failed to wait on child: {}", e) });
5050///
5151/// assert!(ecode.success());
5252/// ```
@@ -123,10 +123,10 @@ impl Read for ChildStderr {
123123/// use std::process::Command;
124124///
125125/// let output = Command::new("sh")
126- /// .arg("-c")
127- /// .arg("echo hello")
128- /// .output()
129- /// .unwrap_or_else(|e| { panic!("failed to execute process: {}", e) });
126+ /// .arg("-c")
127+ /// .arg("echo hello")
128+ /// .output()
129+ /// .unwrap_or_else(|e| { panic!("failed to execute process: {}", e) });
130130/// let hello = output.stdout;
131131/// ```
132132#[ stable( feature = "process" , since = "1.0.0" ) ]
You can’t perform that action at this time.
0 commit comments