From 6cef5124d3775751879b1a799f8fe09cbfd1ff55 Mon Sep 17 00:00:00 2001 From: Lukas Potthast Date: Fri, 5 Apr 2024 18:19:06 +0200 Subject: [PATCH] Make clear that anything IntoIterator suffices --- leptos_dom/src/html.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/leptos_dom/src/html.rs b/leptos_dom/src/html.rs index 65a4048784..242d40c038 100644 --- a/leptos_dom/src/html.rs +++ b/leptos_dom/src/html.rs @@ -367,7 +367,8 @@ where } /// Bind data through attributes, or behavior through event handlers, to an element. -/// A collection of bindings (`collection: Vec`) can be spread onto an element like in `view! {
}`. +/// A value of any type able to provide an iterator of bindings (like a: `Vec`), +/// can be spread onto an element using the spread syntax `view! {
}`. pub enum Binding { /// A statically named attribute. Attribute {