Explorar o código

trivial fix for documentation example for onclick handler of buttons (#3882)

Casey Kneale hai 3 meses
pai
achega
9e09bcf3f7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/html/src/events/mouse.rs

+ 1 - 1
packages/html/src/events/mouse.rs

@@ -64,7 +64,7 @@ impl_event! {
     ///
     /// ## Example
     /// ```rust, ignore
-    /// rsx!( button { "click me", onclick: move |_| tracing::info!("Clicked!`") } )
+    /// rsx!( button { onclick: move |_| tracing::info!("Clicked!"), "click me" } )
     /// ```
     ///
     /// ## Reference