docs: add title to doc comment
This commit is contained in:
1 parent
be9f1a52ad
commit
d11f322f55
1 file changed
+4
-1
@@ -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"), }
|
||||
|
||||
Reference in new issue
Block a user