]>
git.proxmox.com Git - rustc.git/blob - src/doc/book/listings/ch17-oop/listing-17-15/src/main.rs
4 let mut post
= Post
::new();
6 post
.add_text("I ate a salad for lunch today");
7 assert_eq
!("", post
.content());
10 assert_eq
!("", post
.content());
13 assert_eq
!("I ate a salad for lunch today", post
.content());