mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 04:29:41 +00:00
@ -174,7 +174,7 @@ use std::ops;
|
||||
// Implement fn multiply to make the code work.
|
||||
// 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
|
||||
fn multiply
|
||||
|
||||
fn main() {
|
||||
assert_eq!(6, multiply(2u8, 3u8));
|
||||
|
Reference in New Issue
Block a user