File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -41,12 +41,12 @@ use thread;
41
41
/// use std::process::Command;
42
42
///
43
43
/// 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) });
47
47
///
48
48
/// 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) });
50
50
///
51
51
/// assert!(ecode.success());
52
52
/// ```
@@ -123,10 +123,10 @@ impl Read for ChildStderr {
123
123
/// use std::process::Command;
124
124
///
125
125
/// 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) });
130
130
/// let hello = output.stdout;
131
131
/// ```
132
132
#[ stable( feature = "process" , since = "1.0.0" ) ]
You can’t perform that action at this time.
0 commit comments