Преглед изворни кода

fix the span the error reports under

Evan Almloff пре 2 година
родитељ
комит
c04ce2901e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/rsx/src/component.rs

+ 1 - 1
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 })
     }