fix(Macros): fixes a typo in a macro generated error message

This commit is contained in:
Kevin K 2015-07-19 22:03:59 -04:00
parent 5d0f2520f8
commit c9195c5f92

View file

@ -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)[..]
}))