Explorar el Código

Merge pull request #357 from mrxiaozhuox/patch-1

Jon Kelley hace 3 años
padre
commit
510f07bcec
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      docs/guide/src/state/localstate.md

+ 1 - 1
docs/guide/src/state/localstate.md

@@ -19,8 +19,8 @@ cx.render(rsx!{
     ul {
         todos.read().iter().enumerate().map(|(id, todo)| rsx!{
             li {
+                onhover: move |_| *todos.write()[id].is_hovered = true,
                 h1 { "{todo.contents}" }
-                onhover: move |_| *todos.write()[id].is_hovered = true;
             }
         })
     }