docs: add title to doc comment

This commit is contained in:
Jonathan Kelley committed 2022-01-07 12:12:33 -05:00
1 parent be9f1a52ad
commit d11f322f55
1 file changed
+4 -1
+4 -1
View File
@@ -328,7 +328,10 @@ type ExternalListenerCallback<'bump, T> = BumpBox<'bump, dyn FnMut(T) + 'bump>;
///
/// This makes it possible to pass `move |evt| {}` style closures into components as property fields.
///
/// ```rust
///
/// # Example
///
/// ```rust, ignore
///
/// rsx!{
/// MyComponent { onclick: move |evt| log::info!("clicked"), }