소스 검색

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

Casey Kneale 3 달 전
부모
커밋
9e09bcf3f7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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