diff --git a/leptos/src/attribute_interceptor.rs b/leptos/src/attribute_interceptor.rs index a4b8d5dcfe..3341585fa8 100644 --- a/leptos/src/attribute_interceptor.rs +++ b/leptos/src/attribute_interceptor.rs @@ -8,7 +8,7 @@ use leptos::prelude::*; type ChildBuilder = dyn Fn(AnyAttribute) -> T + Send + Sync + 'static; /// Intercepts attributes passed to your component, allowing passing them to any element. -/// +/// /// By default, Leptos passes any attributes passed to your component (e.g. ``) to the top-level element in the view returned by your component. /// [`AttributeInterceptor`] allows you to intercept this behavior and pass it onto any element in @@ -26,7 +26,7 @@ type ChildBuilder = dyn Fn(AnyAttribute) -> T + Send + Sync + 'static; /// /// #[component] /// pub fn MyComponent() -> impl IntoView { -/// view!{ +/// view! { /// ///
///
@@ -39,7 +39,7 @@ type ChildBuilder = dyn Fn(AnyAttribute) -> T + Send + Sync + 'static; pub fn AttributeInterceptor( /// The elements that will be rendered, with the attributes this component received as a /// parameter. - children: Chil + children: Chil, ) -> impl IntoView where Chil: Fn(AnyAttribute) -> T + Send + Sync + 'static,