Explorar o código

tweak: example

Jonathan Kelley %!s(int64=3) %!d(string=hai) anos
pai
achega
1c691e899c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/framework_benchmark.rs

+ 1 - 1
examples/framework_benchmark.rs

@@ -91,7 +91,7 @@ fn app(cx: Scope) -> Element {
 struct ActionButtonProps<'a> {
     name: &'a str,
     id: &'a str,
-    onclick: EventHandler<'a, ()>,
+    onclick: EventHandler<'a>,
 }
 
 fn ActionButton<'a>(cx: Scope<'a, ActionButtonProps<'a>>) -> Element {