|
// functions5.rs
|
|
// 让我能够编译!执行 `rustex hint functions5` 获取提示 :)
|
|
|
|
// I AM NOT DONE
|
|
|
|
/// 翻译: [mg-chao](https://github.com/mg-chao)
|
|
fn main() {
|
|
let answer = square(3);
|
|
println!("The answer is {}", answer);// 译:"答案是 {}"
|
|
}
|
|
|
|
fn square(num: i32) -> i32 {
|
|
num * num;
|
|
}
|