This commit is contained in:
Andrea Manzini
2022-03-07 12:16:31 +01:00
committed by GitHub
parent 2ef20e4bb5
commit 39beba1613

View File

@ -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 ()")
} }
``` ```