about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-10-10 02:54:14 +0000
committerbors <bors@rust-lang.org>2017-10-10 02:54:14 +0000
commit13ae187043a73a07bc15f5856d1a8f7a737f244d (patch)
treedc7ec854191982310f19f373f4a5588ebc4ad90b /src/libstd
parent692b94ae25e0ae7d74cf15a5800e10a16239dab1 (diff)
parent8ef54478157adb980598104af0ce571cb6637931 (diff)
downloadrust-13ae187043a73a07bc15f5856d1a8f7a737f244d.tar.gz
rust-13ae187043a73a07bc15f5856d1a8f7a737f244d.zip
Auto merge of #44822 - frewsxcv:frewsxcv-eprintln, r=Kimundi
Migrate to eprint/eprintln macros where appropriate.

None
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/process.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libstd/process.rs b/src/libstd/process.rs
index dbb58991215..c506768b18b 100644
--- a/src/libstd/process.rs
+++ b/src/libstd/process.rs
@@ -1083,8 +1083,6 @@ impl Child {
 /// function and compute the exit code from its return value:
 ///
 /// ```
-/// use std::io::{self, Write};
-///
 /// fn run_app() -> Result<(), ()> {
 ///     // Application logic here
 ///     Ok(())
@@ -1094,7 +1092,7 @@ impl Child {
 ///     ::std::process::exit(match run_app() {
 ///        Ok(_) => 0,
 ///        Err(err) => {
-///            writeln!(io::stderr(), "error: {:?}", err).unwrap();
+///            eprintln!("error: {:?}", err);
 ///            1
 ///        }
 ///     });