docs: remove unnecessary type parameter and trait bound in component macro 'bad' example (#2520)
This commit is contained in:
parent
8b1c0a7013
commit
410225c4d1
|
@ -489,7 +489,7 @@ pub fn template(tokens: TokenStream) -> TokenStream {
|
||||||
/// use leptos::html::Div;
|
/// use leptos::html::Div;
|
||||||
///
|
///
|
||||||
/// #[component]
|
/// #[component]
|
||||||
/// fn MyComponent<T: Fn() -> HtmlElement<Div>>(render_prop: impl Fn() -> HtmlElement<Div>) -> impl IntoView {
|
/// fn MyComponent(render_prop: impl Fn() -> HtmlElement<Div>) -> impl IntoView {
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue