From 78b6b5c0f2c5b0d24522c122f7d056330b088268 Mon Sep 17 00:00:00 2001 From: chenhai <13051671277@163.com> Date: Sat, 5 Aug 2023 22:03:09 +0800 Subject: [PATCH] fix typo: 'mentiond' -> 'mentioned' --- en/src/generics-traits/traits.md | 2 +- solutions/generics-traits/traits.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/en/src/generics-traits/traits.md b/en/src/generics-traits/traits.md index 1e5a28d..f75f51e 100644 --- a/en/src/generics-traits/traits.md +++ b/en/src/generics-traits/traits.md @@ -172,7 +172,7 @@ In Rust, many of the operators can be overloaded via traits. That is, some opera use std::ops; // Implement fn multiply to make the code work. -// As mentiond above, `+` needs `T` to implement `std::ops::Add` Trait. +// As mentioned above, `+` needs `T` to implement `std::ops::Add` Trait. // So, what about `*`? You can find the answer here: https://doc.rust-lang.org/core/ops/ fn multipl diff --git a/solutions/generics-traits/traits.md b/solutions/generics-traits/traits.md index e1bebad..110eba5 100644 --- a/solutions/generics-traits/traits.md +++ b/solutions/generics-traits/traits.md @@ -91,7 +91,7 @@ fn main() { use std::ops; // implement fn multiply to make the code work -// As mentiond above, `+` needs `T` to implement `std::ops::Add` Trait +// As mentioned above, `+` needs `T` to implement `std::ops::Add` Trait // so, what about `*` ? You can find the answer here: https://doc.rust-lang.org/core/ops/ fn multiply>(x: T, y: T) -> T { x * y