mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 04:29:41 +00:00
fix typo: 'mentiond' -> 'mentioned'
This commit is contained in:
@ -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<T: ops::Mul<Output = T>>(x: T, y: T) -> T {
|
||||
x * y
|
||||
|
Reference in New Issue
Block a user