diff --git a/zh-CN/src/generics-traits/traits.md b/zh-CN/src/generics-traits/traits.md index f27c807..8919643 100644 --- a/zh-CN/src/generics-traits/traits.md +++ b/zh-CN/src/generics-traits/traits.md @@ -143,8 +143,8 @@ fn main() { let _one_second = Seconds(1); println!("One second looks like: {:?}", _one_second); - let _this_is_true = (_one_second == _one_second); - let _this_is_true = (_one_second > _one_second); + let _this_is_true = _one_second == _one_second; + let _this_is_true = _one_second > _one_second; let foot = Inches(12); @@ -467,4 +467,4 @@ fn main() { } ``` -> You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it :) \ No newline at end of file +> You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it :)