From 21304427ad0c4b8d42d26da2fbae22916b5c6ebb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E5=B0=8F=E7=A3=8A?= Date: Tue, 8 Feb 2022 21:06:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A6=82=E6=9E=9C=E9=9C=80=E8=A6=81=E6=BB=A1?= =?UTF-8?q?=E8=B6=B3=E8=BF=90=E8=A1=8C=E8=BE=93=E5=87=BA=E7=9A=84=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=EF=BC=8C=E5=88=99=E9=9C=80=E8=A6=81=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=20println!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- book/contents/basic/trait/trait.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/contents/basic/trait/trait.md b/book/contents/basic/trait/trait.md index d27bb98b..8251c505 100644 --- a/book/contents/basic/trait/trait.md +++ b/book/contents/basic/trait/trait.md @@ -69,8 +69,8 @@ fn main() { let post = Post{title: "Rust语言简介".to_string(),author: "Sunface".to_string(), content: "Rust棒极了!".to_string()}; let weibo = Weibo{username: "sunface".to_string(),content: "好像微博没Tweet好用".to_string()}; - post.summarize(); - weibo.summarize(); + println!("{}",post.summarize()); + println!("{}",weibo.summarize()); } ```