docs: remove unnecessary type parameter and trait bound in component macro 'bad' example (#2520)

This commit is contained in:
Ethan Niser 2024-04-17 17:53:18 -05:00 committed by GitHub
parent 8b1c0a7013
commit 410225c4d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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 {
/// } /// }
/// ``` /// ```
/// ///