Skip to content

Commit

Permalink
fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
its-the-shrimp committed Oct 22, 2023
1 parent 1c39a1d commit 0c747e6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/yew-macro/src/html_tree/html_element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ impl Parse for HtmlElement {
"textarea" => {
return Err(syn::Error::new_spanned(
open.to_spanned(),
"the tag `<textarea>` is a void element and cannot have children \
(hint: to provide value to it, rewrite it as `<textarea value={x} />`. \
If you wish to set the default value, rewrite it as `<textarea defaultvalue={x} />`)",
"the tag `<textarea>` is a void element and cannot have children (hint: \
to provide value to it, rewrite it as `<textarea value={x} />`. If you \
wish to set the default value, rewrite it as `<textarea defaultvalue={x} \
/>`)",
))
}

Expand Down

0 comments on commit 0c747e6

Please sign in to comment.