瀏覽代碼

remove double braces in shorthand children error message

Evan Almloff 1 年之前
父節點
當前提交
2f387604a8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/rsx/src/element.rs

+ 1 - 1
packages/rsx/src/element.rs

@@ -278,7 +278,7 @@ impl Element {
                         r#"Shorthand element children are not supported.
 To pass children into elements, wrap them in curly braces.
 Like so:
-    div {{ {{children}} }}
+    div { {children} }
 
 "#,
                     ));