diff --git a/packages/html/src/events/mouse.rs b/packages/html/src/events/mouse.rs
index ed50c8ae7..454faee8e 100644
--- a/packages/html/src/events/mouse.rs
+++ b/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