diff options
| author | Corey Farwell <coreyf@rwell.org> | 2017-09-25 00:14:56 -0400 |
|---|---|---|
| committer | Corey Farwell <coreyf@rwell.org> | 2017-09-28 11:38:35 -0400 |
| commit | 8ef54478157adb980598104af0ce571cb6637931 (patch) | |
| tree | 9d8b6f4c5df0e55eedd1e67bdadcf86ee5430448 /src/libstd | |
| parent | 48c1c548e1a61d1c27cdfb3425db4bbdecf6f303 (diff) | |
| download | rust-8ef54478157adb980598104af0ce571cb6637931.tar.gz rust-8ef54478157adb980598104af0ce571cb6637931.zip | |
Migrate to eprint/eprintln macros where appropriate.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/process.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libstd/process.rs b/src/libstd/process.rs index 1869ad3ed70..015f859b5cc 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 /// } /// }); |
