From c9195c5f92abb8cd6a37b4f4fbb2f1fee2a8e368 Mon Sep 17 00:00:00 2001 From: Kevin K Date: Sun, 19 Jul 2015 22:03:59 -0400 Subject: [PATCH] fix(Macros): fixes a typo in a macro generated error message --- src/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/macros.rs b/src/macros.rs index b4bb1ba5ffb..8605a6c85fa 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -373,7 +373,7 @@ macro_rules! simple_enum { let v = vec![ $(stringify!($v),)+ ]; - format!("valid:{}", + format!("valid values:{}", v.iter().fold(String::new(), |a, i| { a + &format!(" {}", i)[..] }))