From 3da05e5c9b1bc3567d0d8e442879cebda5b17f65 Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Fri, 22 Dec 2023 16:06:09 -0500 Subject: [PATCH] docs: specify form for component generics --- leptos_macro/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/leptos_macro/src/lib.rs b/leptos_macro/src/lib.rs index 7d8f01b056..25fc33dcf7 100644 --- a/leptos_macro/src/lib.rs +++ b/leptos_macro/src/lib.rs @@ -76,7 +76,8 @@ mod slot; /// # runtime.dispose(); /// ``` /// -/// 3. Components (functions annotated with `#[component]`) can be inserted as camel-cased tags +/// 3. Components (functions annotated with `#[component]`) can be inserted as camel-cased tags. (Generics +/// on components are specified as `/>`, not the turbofish `/>`.) /// ```rust /// # use leptos::*; /// # let runtime = create_runtime();