about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-03-09 07:01:09 +0000
committerbors <bors@rust-lang.org>2015-03-09 07:01:09 +0000
commit14ce607d9b96ab3c8d5564bcddd553d6f8e175c7 (patch)
tree2cc4a6652586480e7595005e7ce88e71308d85e7 /src/libstd
parent36c3612f5ceae0fb9df4127bc94a5b443874d1ca (diff)
parent3797827460bde2044acb17415a51c0351b5d2dec (diff)
downloadrust-14ce607d9b96ab3c8d5564bcddd553d6f8e175c7.tar.gz
rust-14ce607d9b96ab3c8d5564bcddd553d6f8e175c7.zip
Auto merge of #23200 - Manishearth:rollup, r=Manishearth
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/process.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/process.rs b/src/libstd/process.rs
index 79028f49e68..d4392a0740a 100644
--- a/src/libstd/process.rs
+++ b/src/libstd/process.rs
@@ -264,7 +264,7 @@ impl Command {
     /// By default, stdin, stdout and stderr are captured (and used to
     /// provide the resulting output).
     ///
-    /// # Example
+    /// # Examples
     ///
     /// ```
     /// # #![feature(process)]
@@ -275,8 +275,8 @@ impl Command {
     /// });
     ///
     /// println!("status: {}", output.status);
-    /// println!("stdout: {}", String::from_utf8_lossy(output.stdout.as_slice()));
-    /// println!("stderr: {}", String::from_utf8_lossy(output.stderr.as_slice()));
+    /// println!("stdout: {}", String::from_utf8_lossy(&output.stdout));
+    /// println!("stderr: {}", String::from_utf8_lossy(&output.stderr));
     /// ```
     #[stable(feature = "process", since = "1.0.0")]
     pub fn output(&mut self) -> io::Result<Output> {