mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 04:29:41 +00:00
Update char-bool.md
This commit is contained in:
@ -59,12 +59,12 @@ fn main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn implicitly_ret_unit() {
|
fn implicitly_ret_unit() {
|
||||||
println!("I will returen a ()")
|
println!("I will return a ()")
|
||||||
}
|
}
|
||||||
|
|
||||||
// don't use this one
|
// don't use this one
|
||||||
fn explicitly_ret_unit() -> () {
|
fn explicitly_ret_unit() -> () {
|
||||||
println!("I will returen a ()")
|
println!("I will return a ()")
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user