File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ impl Command {
264
264
/// By default, stdin, stdout and stderr are captured (and used to
265
265
/// provide the resulting output).
266
266
///
267
- /// # Example
267
+ /// # Examples
268
268
///
269
269
/// ```
270
270
/// # #![feature(process)]
@@ -275,8 +275,8 @@ impl Command {
275
275
/// });
276
276
///
277
277
/// println!("status: {}", output.status);
278
- /// println!("stdout: {}", String::from_utf8_lossy(output.stdout.as_slice() ));
279
- /// println!("stderr: {}", String::from_utf8_lossy(output.stderr.as_slice() ));
278
+ /// println!("stdout: {}", String::from_utf8_lossy(& output.stdout));
279
+ /// println!("stderr: {}", String::from_utf8_lossy(& output.stderr));
280
280
/// ```
281
281
#[ stable( feature = "process" , since = "1.0.0" ) ]
282
282
pub fn output ( & mut self ) -> io:: Result < Output > {
You can’t perform that action at this time.
0 commit comments