diff --git a/packages/rsx/src/component.rs b/packages/rsx/src/component.rs index ad3f62d1a..45078b65f 100644 --- a/packages/rsx/src/component.rs +++ b/packages/rsx/src/component.rs @@ -250,7 +250,7 @@ impl Parse for ComponentField { } }; if input.peek(LitStr) || input.peek(Ident) { - missing_trailing_comma!(input.span()); + missing_trailing_comma!(content.span()); } Ok(Self { name, content }) }