瀏覽代碼

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