浏览代码

fix tests

Evan Almloff 1 年之前
父节点
当前提交
3f31b9de43
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/dioxus-tui/examples/hover.rs

+ 1 - 1
packages/dioxus-tui/examples/hover.rs

@@ -13,7 +13,7 @@ fn app(cx: Scope) -> Element {
         let mut result = String::new();
         result += "#";
         for c in c.iter() {
-            write!(string, "{c:02X?}").unwrap();
+            write!(result, "{c:02X?}").unwrap();
         }
         result
     }