about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/macros.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/macros.rs b/src/libcore/macros.rs
index 14e0be2cf16..fcd93ad4a02 100644
--- a/src/libcore/macros.rs
+++ b/src/libcore/macros.rs
@@ -186,12 +186,12 @@ macro_rules! write {
 #[macro_export]
 #[stable]
 macro_rules! writeln {
-    ($dst:expr, $fmt:expr, $($arg:tt)*) => (
-        write!($dst, concat!($fmt, "\n") $($arg)*)
-    );
     ($dst:expr, $fmt:expr) => (
         write!($dst, concat!($fmt, "\n"))
-    )
+    );
+    ($dst:expr, $fmt:expr, $($arg:expr),*) => (
+        write!($dst, concat!($fmt, "\n"), $($arg,)*)
+    );
 }
 
 /// A utility macro for indicating unreachable code.