fix: docs note on style refers to class (#1066)

This commit is contained in:
Greg Johnston 2023-05-19 13:42:16 -04:00 committed by GitHub
parent 5a67e208fd
commit 2cbf3581c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -807,7 +807,7 @@ impl<El: ElementDescriptor + 'static> HtmlElement<El> {
/// Sets a style on an element.
///
/// **Note**: In the builder syntax, this will be overwritten by the `style`
/// attribute if you use `.attr("class", /* */)`. In the `view` macro, they
/// attribute if you use `.attr("style", /* */)`. In the `view` macro, they
/// are automatically re-ordered so that this over-writing does not happen.
#[track_caller]
pub fn style(