From 940d5ca3d05ff23767a94b764b6b3658a435ac37 Mon Sep 17 00:00:00 2001 From: Giles Cope Date: Thu, 22 Jun 2017 22:18:57 +0100 Subject: [PATCH] Adding training commer to be more consistent with prior format. --- src/libcore/macros.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libcore/macros.rs b/src/libcore/macros.rs index 543e61db67d..7975b16c408 100644 --- a/src/libcore/macros.rs +++ b/src/libcore/macros.rs @@ -117,7 +117,7 @@ macro_rules! assert_eq { (left_val, right_val) => { if !(*left_val == *right_val) { panic!(r#"assertion failed: `(left == right)` - left: `{:?}` + left: `{:?}`, right: `{:?}`"#, left_val, right_val) } } @@ -128,7 +128,7 @@ macro_rules! assert_eq { (left_val, right_val) => { if !(*left_val == *right_val) { panic!(r#"assertion failed: `(left == right)` - left: `{:?}` + left: `{:?}`, right: `{:?}`: {}"#, left_val, right_val, format_args!($($arg)+)) } @@ -165,7 +165,7 @@ macro_rules! assert_ne { (left_val, right_val) => { if *left_val == *right_val { panic!(r#"assertion failed: `(left != right)` - left: `{:?}` + left: `{:?}`, right: `{:?}`"#, left_val, right_val) } } @@ -176,7 +176,7 @@ macro_rules! assert_ne { (left_val, right_val) => { if *left_val == *right_val { panic!(r#"assertion failed: `(left != right)` - left: `{:?}` + left: `{:?}`, right: `{:?}`: {}"#, left_val, right_val, format_args!($($arg)+)) }