fix the span the error reports under

This commit is contained in:
Evan Almloff 2023-03-21 07:59:25 -05:00
parent 3655e7c89e
commit c04ce2901e

View file

@ -250,7 +250,7 @@ impl Parse for ComponentField {
} }
}; };
if input.peek(LitStr) || input.peek(Ident) { if input.peek(LitStr) || input.peek(Ident) {
missing_trailing_comma!(input.span()); missing_trailing_comma!(content.span());
} }
Ok(Self { name, content }) Ok(Self { name, content })
} }