Skip to content

Commit e88f80a

Browse files
tynopexsteveklabnik
authored andcommitted
Update process.rs
Make whitespace consistent
1 parent d223e4c commit e88f80a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/libstd/process.rs

+8-8
Original file line numberDiff line numberDiff 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")]

0 commit comments

Comments
 (0)