瀏覽代碼

fix example

Jonathan Kelley 2 年之前
父節點
當前提交
6a4979b574
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/rsx-rosetta/examples/html.rs

+ 1 - 1
packages/rsx-rosetta/examples/html.rs

@@ -16,7 +16,7 @@ fn main() {
 
     let dom = Dom::parse(html).unwrap();
 
-    let body = rsx_rosetta::rsx_from_html(dom);
+    let body = rsx_rosetta::rsx_from_html(&dom);
 
     let out = dioxus_autofmt::write_block_out(body).unwrap();