pull/1491/merge
tdiant 4 weeks ago committed by GitHub
commit 2d61a93e66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -18,7 +18,7 @@ fn add(i: i32, j: i32) -> i32 {
## 函数要点
- 函数名和变量名使用[蛇形命名法(snake case)](https://course.rs/practice/naming.html),例如 `fn add_two() -> {}`
- 函数名和变量名使用[蛇形命名法(snake case)](https://course.rs/practice/naming.html),例如 `fn add_two() {}`
- 函数的位置可以随便放Rust 不关心我们在哪里定义了函数,只要有定义即可
- 每个函数参数都需要标注类型

Loading…
Cancel
Save