Skip to content

Commit ad13ec7

Browse files
Use eprintln for error output
1 parent 72a7fdc commit ad13ec7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/base64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ fn main() {
7979
io::copy(&mut input, &mut encoder)
8080
};
8181
if let Err(e) = r {
82-
println!(
82+
eprintln!(
8383
"Base64 {} failed with {}",
8484
if opt.decode { "decode" } else { "encode" },
8585
e

0 commit comments

Comments
 (0)