소스 검색

fix: wrong type of error

Ilya Maximov 3 년 전
부모
커밋
86159d0b55
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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()?);