Browse Source

fix: wrong type of error

Ilya Maximov 3 năm trước cách đây
mục cha
commit
86159d0b55
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/core-macro/src/rsx/component.rs

+ 1 - 1
packages/core-macro/src/rsx/component.rs

@@ -199,7 +199,7 @@ impl Parse for ComponentField {
         }
 
         if input.peek(LitStr) && input.peek2(LitStr) {
-            attr_after_element!(input.span());
+            missing_trailing_comma!(input.span());
         }
 
         let content = ContentField::ManExpr(input.parse()?);