Merge pull request #237 from mikucy/fixmisspelling

Fix misspelling of "return"
This commit is contained in:
Sunface 2022-05-17 15:51:54 +08:00 committed by GitHub
commit 0aa575f421
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -73,12 +73,12 @@ fn main() {
}
fn implicitly_ret_unit() {
println!("I will returen a ()")
println!("I will return a ()")
}
// 不要使用下面的函数,它只用于演示!
fn explicitly_ret_unit() -> () {
println!("I will returen a ()")
println!("I will return a ()")
}
```