Skip to content

Commit

Permalink
docs: update borrowing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
matthunz committed Dec 9, 2024
1 parent 3b79bb1 commit efcdfe3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ struct User<'a> {

impl Compose for User<'_> {
fn compose(cx: Scope<Self>) -> impl Compose {
spawn(Text::new(cx.me().name.to_string()))
text::headline(cx.me().name.to_string())
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
//!
//! impl Compose for User<'_> {
//! fn compose(cx: Scope<Self>) -> impl Compose {
//! spawn(Text::new(cx.me().name.to_string()))
//! text::headline(cx.me().name.to_string())
//! }
//! }
//!
Expand Down

0 comments on commit efcdfe3

Please sign in to comment.