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
1 changed files with 1 additions and 2 deletions

View File

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