Skip to content

Commit 9e09bcf

Browse files
authored
trivial fix for documentation example for onclick handler of buttons (#3882)
1 parent 09a4b5e commit 9e09bcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/html/src/events/mouse.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl_event! {
6464
///
6565
/// ## Example
6666
/// ```rust, ignore
67-
/// rsx!( button { "click me", onclick: move |_| tracing::info!("Clicked!`") } )
67+
/// rsx!( button { onclick: move |_| tracing::info!("Clicked!"), "click me" } )
6868
/// ```
6969
///
7070
/// ## Reference

0 commit comments

Comments
 (0)