diff --git a/en/src/generics-traits/advanced-traits.md b/en/src/generics-traits/advanced-traits.md index c761aba..7355dea 100644 --- a/en/src/generics-traits/advanced-traits.md +++ b/en/src/generics-traits/advanced-traits.md @@ -9,7 +9,7 @@ pub trait CacheableItem: Clone + Default + fmt::Debug + Decodable + Encodable { } ``` -Using of `Address` is much more clearable and convenient than `AsRef<[u8]> + Clone + fmt::Debug + Eq + Hash`. +Using of `Address` is much more clearer and convenient than `AsRef<[u8]> + Clone + fmt::Debug + Eq + Hash`. 1. ๐๐๐ ```rust,editable @@ -89,7 +89,7 @@ fn main() { assert_eq!(Point { x: 2, y: 3 } - Point { x: 1, y: 0 }, Point { x: 1, y: 3 }); - println!("Success!") + println!("Success!"); } ``` @@ -110,7 +110,7 @@ trait AgeWidget { fn get(&self) -> u8; } -// A form with both a UsernameWidget and an AgeWidget +// A form with both a UsernameWidget and an AgeWidget. struct Form { username: String, age: u8, @@ -141,10 +141,10 @@ fn main() { let username = UsernameWidget::get(&form); assert_eq!("rustacean".to_owned(), username); - let age = AgeWidget::get(&form); // you can also use `