Skip to content

Commit f4132d1

Browse files
authored
Merge pull request #108 from DioxusLabs/jk/fstring-component-fields
Fix: string formatting detection in component fields
2 parents 29bf424 + 90abd9c commit f4132d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core-macro/src/rsx/component.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ fn is_literal_foramtted(lit: &LitStr) -> bool {
221221
while let Some(next) = chars.next() {
222222
if next == '{' {
223223
let nen = chars.next();
224-
if nen == Some('{') {
224+
if nen != Some('{') {
225225
return true;
226226
}
227227
}

0 commit comments

Comments
 (0)