Skip to content

Commit d9450a6

Browse files
committed
Same change as println for eprintln
1 parent 54e6ad9 commit d9450a6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libstd/macros.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,7 @@ macro_rules! eprint {
211211
#[stable(feature = "eprint", since = "1.19.0")]
212212
macro_rules! eprintln {
213213
() => (eprint!("\n"));
214-
($fmt:expr) => (eprint!(concat!($fmt, "\n")));
215-
($fmt:expr, $($arg:tt)*) => (eprint!(concat!($fmt, "\n"), $($arg)*));
214+
($($arg:tt)*) => (eprint!("{}\n", format_args!($($arg)*)));
216215
}
217216

218217
#[macro_export]

0 commit comments

Comments
 (0)