Fix example compile erorr

This commit is contained in:
Mikayla 2023-08-18 15:17:24 -07:00
parent 84f35d4e6b
commit 4c3227ce2a
No known key found for this signature in database

View file

@ -42,7 +42,7 @@ impl StyleableComponent for () {
pub trait Component<V: View> {
fn render(self, v: &mut V, cx: &mut ViewContext<V>) -> AnyElement<V>;
fn into_element(self) -> ComponentAdapter<V, Self>
fn element(self) -> ComponentAdapter<V, Self>
where
Self: Sized,
{