From 6ef18ef991a729fecbed238c9e4117aae7b43ec3 Mon Sep 17 00:00:00 2001 From: tu6ge <772364230@qq.com> Date: Sat, 7 May 2022 10:59:26 +0800 Subject: [PATCH] Update traits.md --- zh-CN/src/generics-traits/traits.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 :)