Remove a space after a colon of metavariable def in macro def

This commit is contained in:
topecongiro 2018-03-22 16:08:57 +09:00
parent 5516223900
commit 6115dcdbdc

View File

@ -568,7 +568,7 @@ impl MacroArgKind {
match *self {
MacroArgKind::MetaVariable(ty, ref name) => {
Some(format!("${}: {}", name, ty.name.as_str()))
Some(format!("${}:{}", name, ty.name.as_str()))
}
MacroArgKind::Repeat(ref delim_tok, ref args, ref another, ref tok) => {
let (lhs, inner, rhs) = rewrite_delimited_inner(delim_tok, args)?;