diff --git a/README.md b/README.md index 42dfe51..95d73c6 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ struct User<'a> { impl Compose for User<'_> { fn compose(cx: Scope) -> impl Compose { - spawn(Text::new(cx.me().name.to_string())) + text::headline(cx.me().name.to_string()) } } diff --git a/src/lib.rs b/src/lib.rs index 4ac6dee..08d38c3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -54,7 +54,7 @@ //! //! impl Compose for User<'_> { //! fn compose(cx: Scope) -> impl Compose { -//! spawn(Text::new(cx.me().name.to_string())) +//! text::headline(cx.me().name.to_string()) //! } //! } //!