Fix misspelling of "return"

This commit is contained in:
Midori 2022-05-14 01:08:46 +08:00 committed by GitHub
parent 33456b53e4
commit 114b23ba4f
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 ()")
}
```