Pārlūkot izejas kodu

Merge pull request #108 from DioxusLabs/jk/fstring-component-fields

Fix: string formatting detection in component fields
Jonathan Kelley 3 gadi atpakaļ
vecāks
revīzija
f4132d1
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      packages/core-macro/src/rsx/component.rs

+ 1 - 1
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;
             }
         }