From 108aa014d05ef2f491a87f4ad0ed9b8470fdd51b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Miko=C5=82ajczak?= Date: Sun, 18 Feb 2018 13:08:39 +0100 Subject: [PATCH] Make Tweets 280 chars long MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Mikołajczak --- second-edition/src/ch10-02-traits.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/second-edition/src/ch10-02-traits.md b/second-edition/src/ch10-02-traits.md index 7eddcb291..e2e2512b9 100644 --- a/second-edition/src/ch10-02-traits.md +++ b/second-edition/src/ch10-02-traits.md @@ -19,7 +19,7 @@ in order to define a set of behaviors necessary to accomplish some purpose. For example, say we have multiple structs that hold various kinds and amounts of text: a `NewsArticle` struct that holds a news story filed in a particular -place in the world, and a `Tweet` that can have at most 140 characters in its +place in the world, and a `Tweet` that can have at most 280 characters in its content along with metadata like whether it was a retweet or a reply to another tweet. @@ -62,7 +62,7 @@ shows an implementation of the `Summarizable` trait on the `NewsArticle` struct that uses the headline, the author, and the location to create the return value of `summary`. For the `Tweet` struct, we’ve chosen to define `summary` as the username followed by the whole text of the tweet, assuming that tweet content -is already limited to 140 characters. +is already limited to 280 characters. Filename: lib.rs