diff options
| author | bors <bors@rust-lang.org> | 2016-06-18 01:58:28 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-06-18 01:58:28 -0700 |
| commit | 8545424b96a3b6549221568e2771bcb0281152a7 (patch) | |
| tree | 593101bc79db3343986ded91981c32ee15d9fbbf | |
| parent | 646015cae40722a06f9b2ed44d4b3e8bdebcc122 (diff) | |
| parent | 1253e82b7f14a544c3efc62f18dd2f1b6ffa4e0e (diff) | |
| download | rust-8545424b96a3b6549221568e2771bcb0281152a7.tar.gz rust-8545424b96a3b6549221568e2771bcb0281152a7.zip | |
Auto merge of #34314 - tshepang:misnamed, r=steveklabnik
doc: fix mis-named binding & remove not needed `mut`
| -rw-r--r-- | src/libstd/process.rs | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/libstd/process.rs b/src/libstd/process.rs index 96ddda32ae4..2edd1a30638 100644 --- a/src/libstd/process.rs +++ b/src/libstd/process.rs @@ -713,16 +713,17 @@ impl Child { /// ```should_panic /// use std::process::{Command, Stdio}; /// - /// let mut child = Command::new("/bin/cat") - /// .arg("file.txt") - /// .stdout(Stdio::piped()) - /// .spawn() - /// .expect("failed to execute child"); + /// let child = Command::new("/bin/cat") + /// .arg("file.txt") + /// .stdout(Stdio::piped()) + /// .spawn() + /// .expect("failed to execute child"); /// - /// let ecode = child.wait_with_output() - /// .expect("failed to wait on child"); + /// let output = child + /// .wait_with_output() + /// .expect("failed to wait on child"); /// - /// assert!(ecode.status.success()); + /// assert!(output.status.success()); /// ``` /// #[stable(feature = "process", since = "1.0.0")] |
