Explorar el Código

fix the span the error reports under

Evan Almloff hace 2 años
padre
commit
c04ce2901e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 })
     }