Fix example compile erorr

Mikayla created

Change summary

crates/gpui/src/elements/component.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

crates/gpui/src/elements/component.rs 🔗

@@ -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,
     {