diff --git a/packages/core-macro/src/rsx/component.rs b/packages/core-macro/src/rsx/component.rs index e8696504b..5257022a4 100644 --- a/packages/core-macro/src/rsx/component.rs +++ b/packages/core-macro/src/rsx/component.rs @@ -221,7 +221,7 @@ fn is_literal_foramtted(lit: &LitStr) -> bool { while let Some(next) = chars.next() { if next == '{' { let nen = chars.next(); - if nen == Some('{') { + if nen != Some('{') { return true; } }