Same change as println for eprintln

This commit is contained in:
Esteban Küber
2018-07-15 12:28:42 -07:00
committed by Esteban Küber
parent fbce952193
commit e613bfb701

View File

@@ -211,8 +211,7 @@ macro_rules! eprint {
#[stable(feature = "eprint", since = "1.19.0")] #[stable(feature = "eprint", since = "1.19.0")]
macro_rules! eprintln { macro_rules! eprintln {
() => (eprint!("\n")); () => (eprint!("\n"));
($fmt:expr) => (eprint!(concat!($fmt, "\n"))); ($($arg:tt)*) => (eprint!("{}\n", format_args!($($arg)*)));
($fmt:expr, $($arg:tt)*) => (eprint!(concat!($fmt, "\n"), $($arg)*));
} }
#[macro_export] #[macro_export]