commit
a78a1ba47e
|
@ -75,12 +75,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 ()")
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -97,4 +97,4 @@ fn main() {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
> You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it
|
> You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it
|
||||||
|
|
Loading…
Reference in New Issue