about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorBryan Tan <techniux@gmail.com>2017-10-15 13:11:14 -0700
committerBryan Tan <techniux@gmail.com>2017-10-15 13:11:14 -0700
commitbb74b13b742d214d20bb646d5b8d3eaebaad9b8b (patch)
treebcc49f4c0599523edea49367e150cea522661ba5 /src/libstd
parente788e90bad6b1ee5c028d5536c373c3f2c8a3bc4 (diff)
downloadrust-bb74b13b742d214d20bb646d5b8d3eaebaad9b8b.tar.gz
rust-bb74b13b742d214d20bb646d5b8d3eaebaad9b8b.zip
Fix std::process hello world example
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/process.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/process.rs b/src/libstd/process.rs
index 5428ed59c68..38f218ba9d5 100644
--- a/src/libstd/process.rs
+++ b/src/libstd/process.rs
@@ -22,7 +22,7 @@
 //! use std::process::Command;
 //!
 //! // Note that by default, the output of the command will be sent to stdout
-//! let child = Command::new("echo")
+//! let mut child = Command::new("echo")
 //!                         .arg("Hello world")
 //!                         .spawn()
 //!                         .expect("Failed to start process");