Skip to content

Commit

Permalink
Make clear that anything IntoIterator<Binding> suffices
Browse files Browse the repository at this point in the history
  • Loading branch information
lpotthast committed Apr 5, 2024
1 parent 6d7f3a3 commit 6cef512
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion leptos_dom/src/html.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,8 @@ where
}

/// Bind data through attributes, or behavior through event handlers, to an element.
/// A collection of bindings (`collection: Vec<Binding>`) can be spread onto an element like in `view! { <div {..collection} /> }`.
/// A value of any type able to provide an iterator of bindings (like a: `Vec<Binding>`),
/// can be spread onto an element using the spread syntax `view! { <div {..bindings} /> }`.
pub enum Binding {
/// A statically named attribute.
Attribute {
Expand Down

0 comments on commit 6cef512

Please sign in to comment.