Merge pull request #447 from jespersm/master

Order of string for error message confusing
This commit is contained in:
Markus Westerlind 2019-02-26 10:48:55 +01:00 committed by GitHub
commit 4d6b014fff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -234,8 +234,8 @@ impl Validator {
Def::Nonterminal(0) | Def::Terminal | Def::MacroArg => return_err!(
symbol.span,
"`{}` is a {}, not a macro",
def.description(),
msym.name
msym.name,
def.description()
),
Def::Nonterminal(arity) => {
if arity != msym.args.len() {